Also log the shard state info for the shard that can't be opened

This commit is contained in:
Simon Willnauer 2015-05-21 16:46:49 +02:00
parent 35deb7efea
commit 65c646b01d
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class TransportNodesListGatewayStartedShards extends TransportNodesOperat
if (shardStateMetaData != null) {
final IndexMetaData metaData = clusterService.state().metaData().index(shardId.index().name()); // it's a mystery why this is sometimes null
if (metaData != null && canOpenIndex(request.getShardId(), metaData) == false) {
logger.trace("{} can't open index for shard", shardId);
logger.trace("{} can't open index for shard [{}]", shardId, shardStateMetaData);
return new NodeGatewayStartedShards(clusterService.localNode(), -1);
}
// old shard metadata doesn't have the actual index UUID so we need to check if the actual uuid in the metadata