private boolean hasOnGoingMigrationMaster(Level level) {
Operation operation = new HasOngoingMigration();
Address masterAddress = node.getMasterAddress();
OperationService operationService = nodeEngine.getOperationService();
InvocationBuilder invocationBuilder = operationService.createInvocationBuilder(SERVICE_NAME, operation, masterAddress);
Future future = invocationBuilder.setTryCount(100).setTryPauseMillis(100).invoke();
try {
return (Boolean) future.get(1, TimeUnit.MINUTES);
} catch (InterruptedException ie) {
Logger.getLogger(InternalPartitionServiceImpl.class).finest("Future wait interrupted", ie);
} catch (Exception e) {