Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validation for the search backpressure cancellation settings #15501

Merged
merged 10 commits into from
Sep 17, 2024
Prev Previous commit
Next Next commit
Fix typo
Signed-off-by: Gao Binlong <gbinlong@amazon.com>
  • Loading branch information
gaobinlong committed Aug 30, 2024
commit 03b13b33c3499d4e6d8113b5c233e0192db0e42d
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
throw new IllegalArgumentException("search_backpressure.search_shard_task.cancellation_ratio must be > 0");
}
if (value > 1.0) {
throw new IllegalArgumentException("search_backpressure.search_shard_task.cancellation_ratio must <= 1.0");
throw new IllegalArgumentException("search_backpressure.search_shard_task.cancellation_ratio must be <= 1.0");
}

Check warning on line 57 in server/src/main/java/org/opensearch/search/backpressure/settings/SearchShardTaskSettings.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/search/backpressure/settings/SearchShardTaskSettings.java#L56-L57

Added lines #L56 - L57 were not covered by tests
},
Setting.Property.Dynamic,
Setting.Property.NodeScope
Expand Down
Loading