return new FetchResult<>(shardId, null, emptySet()); } else { reroute(shardId, "nodes failed [" + failedNodes.size() + "], ignored [" + allIgnoreNodes.size() + "]"); return new FetchResult<>(shardId, fetchData, allIgnoreNodes);
if (shardStores.hasData() == false) { logger.trace("{}: fetching new stores for initializing shard", shard); continue; // still fetching if (shardStores.getData().containsKey(currentNode)) { currentSyncId = shardStores.getData().get(currentNode).storeFilesMetaData().syncId(); } else { currentSyncId = null;
@Override protected AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> fetchData(ShardRouting shard, RoutingAllocation allocation) { AsyncShardFetch<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> fetch = asyncFetchStarted.computeIfAbsent(shard.shardId(), shardId -> new InternalAsyncFetch<>(logger, "shard_started", shardId, startedAction)); AsyncShardFetch.FetchResult<TransportNodesListGatewayStartedShards.NodeGatewayStartedShards> shardState = fetch.fetchData(allocation.nodes(), allocation.getIgnoreNodes(shard.shardId())); if (shardState.hasData()) { shardState.processAllocation(allocation); } return shardState; } }
if (shardState.hasData() == false) { allocation.setHasPendingAsyncFetch(); List<NodeAllocationResult> nodeDecisions = null;
if (shardState.hasData() == false) { allocation.setHasPendingAsyncFetch(); List<NodeAllocationResult> nodeDecisions = null;
if (shardState.hasData() == false) { allocation.setHasPendingAsyncFetch(); List<NodeAllocationResult> nodeDecisions = null;
if (shardStores.hasData() == false) { logger.trace("{}: ignoring allocation, still fetching shard stores", unassignedShard); allocation.setHasPendingAsyncFetch();
if (shardStores.hasData() == false) { logger.trace("{}: ignoring allocation, still fetching shard stores", unassignedShard); allocation.setHasPendingAsyncFetch();
if (shardStores.hasData() == false) { logger.trace("{}: ignoring allocation, still fetching shard stores", unassignedShard); allocation.setHasPendingAsyncFetch();
int numberOfAllocationsFound = 0; long highestVersion = ShardStateMetaData.NO_VERSION; for (NodeGatewayStartedShards nodeShardState : shardState.getData().values()) { long version = nodeShardState.legacyVersion(); DiscoveryNode node = nodeShardState.getNode();
if (shardStores.hasData() == false) { logger.trace("{}: fetching new stores for initializing shard", shard); continue; // still fetching if (shardStores.getData().containsKey(currentNode)) { currentSyncId = shardStores.getData().get(currentNode).storeFilesMetaData().syncId(); } else { currentSyncId = null;
if (shardStores.hasData() == false) { logger.trace("{}: ignoring allocation, still fetching shard stores", shard); allocation.setHasPendingAsyncFetch();
List<NodeGatewayStartedShards> nodeShardStates = new ArrayList<>(); int numberOfAllocationsFound = 0; for (NodeGatewayStartedShards nodeShardState : shardState.getData().values()) { DiscoveryNode node = nodeShardState.getNode(); String allocationId = nodeShardState.allocationId();
return new FetchResult<>(shardId, null, emptySet()); } else { reroute(shardId, "nodes failed [" + failedNodes.size() + "], ignored [" + allIgnoreNodes.size() + "]"); return new FetchResult<>(shardId, fetchData, allIgnoreNodes);
int numberOfAllocationsFound = 0; long highestVersion = -1; for (TransportNodesListGatewayStartedShards.NodeGatewayStartedShards nodeShardState : shardState.getData().values()) { long version = nodeShardState.version(); DiscoveryNode node = nodeShardState.getNode();
return new FetchResult<>(shardId, null, ImmutableSet.<String>of(), ImmutableSet.<String>of()); } else { reroute(shardId, "nodes failed [" + failedNodes.size() + "], ignored [" + allIgnoreNodes.size() + "]"); return new FetchResult<>(shardId, fetchData, failedNodes, allIgnoreNodes);
if (shardStores.hasData() == false) { logger.trace("{}: fetching new stores for initializing shard", shard); continue; // still fetching if (shardStores.getData().containsKey(currentNode)) { currentSyncId = shardStores.getData().get(currentNode).storeFilesMetaData().syncId(); } else { currentSyncId = null;
return new FetchResult<>(shardId, null, emptySet()); } else { reroute(shardId, "nodes failed [" + failedNodes.size() + "], ignored [" + allIgnoreNodes.size() + "]"); return new FetchResult<>(shardId, fetchData, allIgnoreNodes);
if (shardStores.hasData() == false) { logger.trace("{}: fetching new stores for initializing shard", shard); continue; // still fetching if (shardStores.getData().containsKey(currentNode)) { currentSyncId = shardStores.getData().get(currentNode).storeFilesMetaData().syncId(); } else { currentSyncId = null;
return new FetchResult<>(shardId, null, emptySet()); } else { reroute(shardId, "nodes failed [" + failedNodes.size() + "], ignored [" + allIgnoreNodes.size() + "]"); return new FetchResult<>(shardId, fetchData, allIgnoreNodes);