Skip to content

Commit dbc62ca

Browse files
committed
Also log the shard state info for the shard that can't be opened
1 parent adc27f8 commit dbc62ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/gateway/local/state/shards/TransportNodesListGatewayStartedShards.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected NodeLocalGatewayStartedShards nodeOperation(NodeRequest request) throw
130130
if (shardStateInfo != null) {
131131
final IndexMetaData metaData = clusterService.state().metaData().index(shardId.index().name()); // it's a mystery why this is sometimes null
132132
if (metaData != null && canOpenIndex(shardId, metaData) == false) {
133-
logger.trace("{} can't open index for shard", shardId);
133+
logger.trace("{} can't open index for shard [{}]", shardId, shardStateInfo);
134134
return new NodeLocalGatewayStartedShards(clusterService.localNode(), -1);
135135
}
136136
logger.debug("{} shard state info found: [{}]", shardId, shardStateInfo);

0 commit comments

Comments
 (0)