Skip to content

Fix failure in SearchCancellationIT.testMSearchChildReqCancellationWi… #1103

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

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

sohami
Copy link
Contributor

@sohami sohami commented Aug 17, 2021

…thHybridTimeout

In some cases as one shared with issue #1099, the maxConcurrentSearchRequests was chosen as 0 which
will compute the final value during execution of the request based on processor counts. When this
computed value is less than number of search request in msearch request, it will execute all the
requests in multiple iterations causing the failure since test will only wait for one such
iteration. Hence setting the maxConcurrentSearchRequests explicitly to number of search requests
being added in the test to ensure correct behavior

Signed-off-by: Sorabh Hamirwasia [email protected]

Description

Fixing the test failure for new tests introduced with #1085

Issues Resolved

#1099

Check List

  • [N/A ] New functionality includes testing.
    • [Y ] All tests pass
  • [N/A ] New functionality has been documented.
    • [ N/A] New functionality has javadoc added
  • [Y ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…thHybridTimeout

In some cases as one shared with issue opensearch-project#1099, the maxConcurrentSearchRequests was chosen as 0 which
will compute the final value during execution of the request based on processor counts. When this
computed value is less than number of search request in msearch request, it will execute all the
requests in multiple iterations causing the failure since test will only wait for one such
iteration. Hence setting the maxConcurrentSearchRequests explicitly to number of search requests
being added in the test to ensure correct behavior

Signed-off-by: Sorabh Hamirwasia <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Wrapper Validation success 2ed906c

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 2ed906c

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Precommit success 2ed906c

@dblock
Copy link
Member

dblock commented Aug 17, 2021

start gradle check

@dblock
Copy link
Member

dblock commented Aug 17, 2021

Thanks for following up on this @sohami.

@opensearch-ci-bot
Copy link
Collaborator

✅   Gradle Check success 2ed906c
Log 409

Reports 409

@dblock dblock merged commit 93a621f into opensearch-project:main Aug 17, 2021
@dblock
Copy link
Member

dblock commented Aug 17, 2021

Could you please backport this to 1.1? Thank you!

@dblock dblock added the pending backport Identifies an issue or PR that still needs to be backported label Aug 17, 2021
@sohami
Copy link
Contributor Author

sohami commented Aug 17, 2021

Could you please backport this to 1.1? Thank you!

@dblock: Created this PR for 1.1: #1105

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending backport Identifies an issue or PR that still needs to be backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants