There are a few distributed tests that are using deprecated Admin API to
getMissingPersistentMembers.
Does anyone know if there's a non-deprecated way to do this?
vm2.invoke(() -> {
DistributedSystemConfig config = defineDistributedSystem(getSystem(),
"");
AdminDistributedSystem adminDS = getDistributedSystem(config);
adminDS.connect();
try {
adminDS.waitToBeConnected(MINUTES.toMillis(2));
await().atMost(2, MINUTES).until(() -> {
Set<PersistentID> missingIds =
adminDS.getMissingPersistentMembers();
if (missingIds.size() != 1) {
return false;
}
for (PersistentID missingId : missingIds) {
adminDS.revokePersistentMember(missingId.getUUID());
}
return true;
});
} finally {
adminDS.disconnect();
}
});