Handle unavailable cluster nodes explicitly

This commit is contained in:
admin committed 2026-10-10 08:19:32 +02:00
1 parent 2276fee60c
commit 350611d562
3 files changed
+31 -18

No files matched your search

+1 -3
View File
@@ -126,9 +126,7 @@ final class NodeRegistry {
for (URI url : urls) {
NodeClient.Node node = stored.get(url.toString());
if (node == null) throw new IOException("Unregistered storage node URL: " + url);
NodeIdentity actual = null;
try { actual = NodeClient.probe(url, token); }
catch (IOException offline) { }
NodeIdentity actual = NodeClient.probeIfAvailable(url, token);
if (actual != null && (!actual.nodeId().equals(node.id()) || !actual.hostId().equals(node.hostId())))
throw new IOException("Storage node identity changed at " + url);
configured.add(node);