-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Concurrent Segment Search] Change ConcurrentSearchTasksIT to use custom slice count #9317
Comments
Hey @dipeshsingh253 , thanks for the interest! You can refer to https://opensearch.org/docs/latest/search-plugins/concurrent-segment-search/#slicing-mechanisms for an explanation of how "slicing" works for concurrent search. In this issue specifically we would like to convert the test from using the hard coded slice calculation here (the left side of the assertion statement): Lines 111 to 113 in fe98aad
And instead set the slice count via the cluster settings and then use that set value in the test assertion. |
Hi @jed326 , thanks for your assistance and this opportunity. Can you provide some resource on how exactly we are going to get slice count via the cluster settings ? |
Hi @dipeshsingh253, the cluster settings API can be used to get and set cluster settings: https://opensearch.org/docs/latest/api-reference/cluster-api/cluster-settings/ The other link I provided above has details on the specific cluster setting to be used. |
Hi @jed326 , this was helpful but it still did not demonstrate how to use it in this project, for example : assertEquals((int) Math.ceil(getSegmentCount(INDEX_NAME) / 5.0) + 1, threadStats.size());
//in above line we have to remove the static part and get something like below,
assertEquals((int) Math.ceil(getSliceCount(), threadStats.size()); so my doubt is how do we use Java code to set or get values in/from cluster setting? If you have any reference to such an example or resource, please point them here. Also if there is any existing file that uses the same sort of logic, please mention that as well. Thanks in advance !!! |
Hi @jed326 , can I pick this up? |
Hi @jed326 , please let me know if this can be picked up. Thanks! |
Hey @rampreeth please go ahead! |
Now that #9107 and #8884 have been merged, we should fix
ConcurrentSearchTasksIT
to not hard code the segment count and instead validate against the customer slice count.Ref: https://github.com/opensearch-project/OpenSearch/blob/main/server/src/internalClusterTest/java/org/opensearch/action/admin/cluster/node/tasks/ConcurrentSearchTasksIT.java#L111
The text was updated successfully, but these errors were encountered: