Skip to content

Commit

Permalink
enable logs
Browse files Browse the repository at this point in the history
  • Loading branch information
pxsalehi committed Sep 13, 2024
1 parent c1f09d3 commit f0f2845
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ tests:
issue: https://github.com/elastic/elasticsearch/issues/110949
- class: org.elasticsearch.multi_node.GlobalCheckpointSyncActionIT
issue: https://github.com/elastic/elasticsearch/issues/111124
- class: org.elasticsearch.cluster.PrevalidateShardPathIT
method: testCheckShards
issue: https://github.com/elastic/elasticsearch/issues/111134
- class: org.elasticsearch.packaging.test.DockerTests
method: test021InstallPlugin
issue: https://github.com/elastic/elasticsearch/issues/110343
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@
public class PrevalidateShardPathIT extends ESIntegTestCase {

@TestIssueLogging(
value = "org.elasticsearch.cluster.service.MasterService:DEBUG, "
value = "org.elasticsearch.cluster.service.MasterService:DEBUG,"
+ "org.elasticsearch.indices.store.IndicesStore:TRACE,"
+ "org.elasticsearch.indices.cluster.IndicesClusterStateService:DEBUG,"
+ "org.elasticsearch.indices.IndicesService:TRACE",
+ "org.elasticsearch.indices.IndicesService:TRACE,"
+ "org.elasticsearch.env.NodeEnvironment:TRACE",
issueUrl = "https://github.com/elastic/elasticsearch/issues/104807"
)
public void testCheckShards() throws Exception {
Expand Down Expand Up @@ -135,5 +136,6 @@ public void testCheckShards() throws Exception {
throw e;
}
}, 30, TimeUnit.SECONDS);
logger.info("--> all done");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private void deleteShardIfExistElseWhere(ClusterState state, IndexShardRoutingTa
state.getVersion(),
requests.size()
);
logger.info("--> deleting if exists for {}", requests);
for (Tuple<DiscoveryNode, ShardActiveRequest> request : requests) {
logger.trace("{} sending shard active check to {}", request.v2().shardId, request.v1());
transportService.sendRequest(request.v1(), ACTION_SHARD_EXISTS, request.v2(), responseHandler);
Expand Down Expand Up @@ -288,6 +289,7 @@ public void handleException(TransportException exp) {
}

private void allNodesResponded() {
logger.info("--> all nodes responses to the shard active request");
if (activeCopies.get() != expectedActiveCopies) {
logger.trace(
"not deleting shard {}, expected {} active copies, but only {} found active copies",
Expand Down

0 comments on commit f0f2845

Please sign in to comment.