Skip to content

Commit

Permalink
Don't postprocess output of toReleaseVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
williamrandolph committed Feb 8, 2024
1 parent 70e62e9 commit bdbd3d2
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 @@ -524,7 +524,7 @@ static void checkForIndexCompatibility(Logger logger, DataPath... dataPaths) thr

throw new IllegalStateException(
"Cannot start this node because it holds metadata for indices with version ["
+ metadata.oldestIndexVersion().toReleaseVersion().split("-")[0]
+ metadata.oldestIndexVersion().toReleaseVersion()
+ "] with which this node of version ["
+ Build.current().version()
+ "] is incompatible. Revert this node to version ["
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public void testIndexCompatibilityChecks() throws IOException {
ex.getMessage(),
allOf(
containsString("Cannot start this node"),
containsString("it holds metadata for indices with version [" + oldIndexVersion.toReleaseVersion().split("-")[0] + "]"),
containsString("it holds metadata for indices with version [" + oldIndexVersion.toReleaseVersion() + "]"),
containsString("Revert this node to version [" + previousNodeVersion.toReleaseVersion() + "]")
)
);
Expand Down

0 comments on commit bdbd3d2

Please sign in to comment.