Skip to content

Commit 95378d2

Browse files
committed
Expand 'metadata index'
1 parent 9fb364c commit 95378d2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ OnDiskState loadOnDiskState(boolean checkClean) throws IOException {
321321
if (logger.isErrorEnabled()) {
322322
outputStream.bytes().utf8ToString().lines().forEach(l -> logger.error("checkIndex: {}", l));
323323
}
324-
throw new IllegalStateException("metadata index at [" + dataPath +
324+
throw new IllegalStateException("the index containing the cluster metadata under the data path [" + dataPath +
325325
"] has been changed by an external force after it was last written by Elasticsearch and is now unreadable");
326326
}
327327
}

server/src/test/java/org/elasticsearch/gateway/PersistedClusterStateServiceTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ public void testFailsIfCorrupt() throws IOException {
666666
}
667667

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

0 commit comments

Comments
 (0)