Skip to content

Commit

Permalink
Expand 'metadata index'
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveCTurner committed Jun 7, 2021
1 parent 9fb364c commit 95378d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ OnDiskState loadOnDiskState(boolean checkClean) throws IOException {
if (logger.isErrorEnabled()) {
outputStream.bytes().utf8ToString().lines().forEach(l -> logger.error("checkIndex: {}", l));
}
throw new IllegalStateException("metadata index at [" + dataPath +
throw new IllegalStateException("the index containing the cluster metadata under the data path [" + dataPath +
"] has been changed by an external force after it was last written by Elasticsearch and is now unreadable");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ public void testFailsIfCorrupt() throws IOException {
}

assertThat(expectThrows(IllegalStateException.class, persistedClusterStateService::loadOnDiskState).getMessage(), allOf(
startsWith("metadata index at ["),
startsWith("the index containing the cluster metadata under the data path ["),
endsWith("] has been changed by an external force after it was last written by Elasticsearch and is now unreadable")));
}
}
Expand Down

0 comments on commit 95378d2

Please sign in to comment.