Skip to content

Commit 817df78

Browse files
committed
When refreshing, also execute the refresh operation on initializing shards to make sure we don't miss it, closes elastic#1370.
1 parent da907c9 commit 817df78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/elasticsearch/src/main/java/org/elasticsearch/action/admin/indices/refresh/TransportRefreshAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,6 @@ public class TransportRefreshAction extends TransportBroadcastOperationAction<Re
120120
* The refresh request works against *all* shards.
121121
*/
122122
@Override protected GroupShardsIterator shards(RefreshRequest request, String[] concreteIndices, ClusterState clusterState) {
123-
return clusterState.routingTable().allActiveShardsGrouped(concreteIndices, true);
123+
return clusterState.routingTable().allAssignedShardsGrouped(concreteIndices, true);
124124
}
125125
}

0 commit comments

Comments
 (0)