mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
@@ -109,13 +109,15 @@ public class CanalInstanceServiceImpl implements CanalInstanceService {
|
||||
}));
|
||||
}
|
||||
|
||||
futures.forEach(f -> {
|
||||
for (Future<Void> f :futures){
|
||||
try {
|
||||
f.get(3, TimeUnit.SECONDS);
|
||||
} catch (TimeoutException | InterruptedException | ExecutionException e) {
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
// ignore
|
||||
} catch (TimeoutException e){
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
return pager;
|
||||
}
|
||||
|
||||
|
||||
@@ -154,13 +154,15 @@ public class NodeServerServiceImpl implements NodeServerService {
|
||||
return !status;
|
||||
}));
|
||||
}
|
||||
futures.forEach(f -> {
|
||||
for (Future<Boolean> f :futures){
|
||||
try {
|
||||
f.get(3, TimeUnit.SECONDS);
|
||||
} catch (TimeoutException | InterruptedException | ExecutionException e) {
|
||||
} catch (InterruptedException | ExecutionException e) {
|
||||
// ignore
|
||||
} catch (TimeoutException e){
|
||||
break;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return pager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user