File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
server/src/main/java/org/opensearch/action/pagination Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,9 @@ private PageData getPageData(
113113 Map <Integer , IndexShardRoutingTable > indexShardRoutingTable = indicesRouting .get (indexName ).getShards ();
114114 for (; startShardId < indexShardRoutingTable .size (); startShardId ++) {
115115 if (indexShardRoutingTable .get (startShardId ).size () > numShardsRequired ) {
116- throw new IllegalArgumentException ("size value should be greater than the replica count of all indices" );
116+ throw new IllegalArgumentException (
117+ "size value should be greater than the replica count of all indices, so that all primary and replicas of a shard show up in single page"
118+ );
117119 }
118120 shardCount += indexShardRoutingTable .get (startShardId ).size ();
119121 if (shardCount > numShardsRequired ) {
You can’t perform that action at this time.
0 commit comments