Expand "NO" decision message in NodeVersionAllocationDecider (#26542)

This explains the `NO` Decision a little more.

Resolves #10403
This commit is contained in:
Lee Hinman 2017-09-08 09:18:34 -06:00 committed by GitHub
parent 155db7326a
commit 4e43aac0f8
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,8 @@ public class NodeVersionAllocationDecider extends AllocationDecider {
return allocation.decision(Decision.YES, NAME, "target node version [%s] is the same or newer than source node version [%s]", return allocation.decision(Decision.YES, NAME, "target node version [%s] is the same or newer than source node version [%s]",
target.node().getVersion(), source.node().getVersion()); target.node().getVersion(), source.node().getVersion());
} else { } else {
return allocation.decision(Decision.NO, NAME, "target node version [%s] is older than the source node version [%s]", return allocation.decision(Decision.NO, NAME, "target node version [%s] is older than the source node version [%s] and may " +
"not support codecs or postings formats for a newer Lucene version",
target.node().getVersion(), source.node().getVersion()); target.node().getVersion(), source.node().getVersion());
} }
} }
@ -90,7 +91,8 @@ public class NodeVersionAllocationDecider extends AllocationDecider {
return allocation.decision(Decision.YES, NAME, "target node version [%s] is the same or newer than snapshot version [%s]", return allocation.decision(Decision.YES, NAME, "target node version [%s] is the same or newer than snapshot version [%s]",
target.node().getVersion(), recoverySource.version()); target.node().getVersion(), recoverySource.version());
} else { } else {
return allocation.decision(Decision.NO, NAME, "target node version [%s] is older than the snapshot version [%s]", return allocation.decision(Decision.NO, NAME, "target node version [%s] is older than the snapshot version [%s] and may " +
"not support codecs or postings formats for a newer Lucene version",
target.node().getVersion(), recoverySource.version()); target.node().getVersion(), recoverySource.version());
} }
} }