We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is no minimum for top_n_size setting. Users can set the value to 0 or negative value which does not make sense.
Add minimum constant here -
query-insights/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java
Line 63 in 84e6b75
Update validator function here -
query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java
Line 139 in 84e6b75
% curl -XPUT "localhost:9200/_cluster/settings?pretty&flat_settings" -H 'Content-Type: application/json' -d '{"transient":{"search.insights.top_queries.latency.top_n_size": "-1"}}' { "acknowledged" : true, "persistent" : { }, "transient" : { "search.insights.top_queries.latency.top_n_size" : "-1" } }
We should reject all requests which attempt to update less than some minimum value, probably 1.
The text was updated successfully, but these errors were encountered:
[Triage] @dzane17 Thanks for filing this issue.
Sorry, something went wrong.
This is fixed as part of #13.
ansjcy
No branches or pull requests
What is the bug?
There is no minimum for top_n_size setting. Users can set the value to 0 or negative value which does not make sense.
Add minimum constant here -
query-insights/src/main/java/org/opensearch/plugin/insights/settings/QueryInsightsSettings.java
Line 63 in 84e6b75
Update validator function here -
query-insights/src/main/java/org/opensearch/plugin/insights/core/service/TopQueriesService.java
Line 139 in 84e6b75
How can one reproduce the bug?
What is the expected behavior?
We should reject all requests which attempt to update less than some minimum value, probably 1.
The text was updated successfully, but these errors were encountered: