Skip to content

Commit 9e89fed

Browse files
committed
Reword node ID mismatch too
1 parent 95378d2 commit 9e89fed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/gateway/PersistedClusterStateService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,8 @@ OnDiskState loadOnDiskState(boolean checkClean) throws IOException {
331331
onDiskState = loadOnDiskState(dataPath, directoryReader);
332332

333333
if (nodeId.equals(onDiskState.nodeId) == false) {
334-
throw new IllegalStateException("unexpected node ID in metadata, found [" + onDiskState.nodeId +
335-
"] in [" + dataPath + "] but expected [" + nodeId + "]");
334+
throw new IllegalStateException("the index containing the cluster metadata under the data path [" + dataPath +
335+
"] belongs to a node with ID [" + onDiskState.nodeId + "] but this node's ID is [" + nodeId + "]");
336336
}
337337
}
338338
} catch (IndexNotFoundException e) {

0 commit comments

Comments
 (0)