Logging: shard store shouldn't log the entire cluster state under trace, but just its version.

If we want the entire CS, we can put the cluster.service on trace
This commit is contained in:
Boaz Leskes 2015-07-21 08:58:50 +02:00
parent ae750bca69
commit 29c99ff23d
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ public class TransportIndicesShardStoresAction extends TransportMasterNodeReadAc
final String[] concreteIndices = indexNameExpressionResolver.concreteIndices(state, request);
final Set<ShardId> shardIdsToFetch = new HashSet<>();
logger.trace("cluster state used to determine shards [{}]", state.prettyPrint());
logger.trace("using cluster state version [{}] to determine shards", state.version());
// collect relevant shard ids of the requested indices for fetching store infos
for (String index : concreteIndices) {
IndexRoutingTable indexShardRoutingTables = routingTables.index(index);

View File

@ -58,7 +58,7 @@ public class IndicesShardStoreRequestTests extends ElasticsearchIntegrationTest
}
@Test
@TestLogging("action.admin.indices.shards:TRACE")
@TestLogging("action.admin.indices.shards:TRACE,cluster.service:TRACE")
public void testBasic() throws Exception {
String index = "test";
internalCluster().ensureAtLeastNumDataNodes(2);