Skip to content

Commit

Permalink
Add more debugging for file settings edge case
Browse files Browse the repository at this point in the history
In order to continue debugging elastic#98391, this commit adds more debug
logging to the test, to determine if the error metadata is not being
placed in the cluster state correctly.
  • Loading branch information
rjernst committed Oct 5, 2023
1 parent 9f72ce0 commit 748f69c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,20 @@ public void clusterChanged(ClusterChangedEvent event) {
clusterService.removeListener(this);
metadataVersion.set(event.state().metadata().version());
savedClusterState.countDown();
} else if (reservedState != null) {
logger.debug(() -> "Got reserved state update without error metadata: " + reservedState);
} else {
logger.debug(() -> "Got cluster state update: " + event.source());
}
}
});

return new Tuple<>(savedClusterState, metadataVersion);
}

@TestLogging(value = "org.elasticsearch.common.file:DEBUG", reason = "https://github.com/elastic/elasticsearch/issues/98391")
@TestLogging(
value = "org.elasticsearch.common.file:DEBUG,org.elasticsearch.xpack.security:DEBUG,org.elasticsearch.cluster.metadata:DEBUG",
reason = "https://github.com/elastic/elasticsearch/issues/98391")
public void testFailsOnStartMasterNodeWithError() throws Exception {
internalCluster().setBootstrapMasterNodeIndex(0);

Expand Down

0 comments on commit 748f69c

Please sign in to comment.