Clarify message on out-of-order state publish

This commit is contained in:
Jason Tedor 2016-03-28 13:54:34 -04:00
parent 4de57fc5aa
commit 85d3d51a74
2 changed files with 3 additions and 2 deletions

View File

@ -406,7 +406,8 @@ public class PublishClusterStateAction extends AbstractComponent {
if (lastSeenClusterState != null && lastSeenClusterState.supersedes(incomingState)) {
final String message = String.format(
Locale.ROOT,
"received older cluster state version [%s] with uuid [%s] than last seen cluster state [%s] with uuid [%s]",
"received older cluster state version [%s] from current master " +
"with uuid [%s] than last seen cluster state [%s] from current master with uuid [%s]",
incomingState.version(),
incomingState.stateUUID(),
lastSeenClusterState.version(),

View File

@ -638,7 +638,7 @@ public class PublishClusterStateActionTests extends ESTestCase {
expectThrows(IllegalStateException.class, () -> node.action.validateIncomingState(incomingState, node.clusterState));
final String message = String.format(
Locale.ROOT,
"received older cluster state version [%s] with uuid [%s] than last seen cluster state [%s] with uuid [%s]",
"received older cluster state version [%s] from current master with uuid [%s] than last seen cluster state [%s] from current master with uuid [%s]",
incomingState.version(),
incomingState.stateUUID(),
node.clusterState.version(),