Skip to content

Commit

Permalink
Updating exception message in ShardPaginationStrategy
Browse files Browse the repository at this point in the history
Signed-off-by: Harsh Garg <[email protected]>
  • Loading branch information
Harsh Garg committed Oct 7, 2024
1 parent dd9df05 commit 10f82d2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ private PageData getPageData(
Map<Integer, IndexShardRoutingTable> indexShardRoutingTable = indicesRouting.get(indexName).getShards();
for (; startShardId < indexShardRoutingTable.size(); startShardId++) {
if (indexShardRoutingTable.get(startShardId).size() > numShardsRequired) {
throw new IllegalArgumentException("size value should be greater than the replica count of all indices");
throw new IllegalArgumentException(
"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"
);
}
shardCount += indexShardRoutingTable.get(startShardId).size();
if (shardCount > numShardsRequired) {
Expand Down

0 comments on commit 10f82d2

Please sign in to comment.