Skip to content

Commit

Permalink
Reword node ID mismatch too
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Jun 7, 2021
1 parent 95378d2 commit 9e89fed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,8 @@ OnDiskState loadOnDiskState(boolean checkClean) throws IOException {
onDiskState = loadOnDiskState(dataPath, directoryReader);

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

0 comments on commit 9e89fed

Please sign in to comment.