-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Avoid invalid retries on multiple replicas when querying #17370
base: main
Are you sure you want to change the base?
Conversation
19b332b
to
f235073
Compare
❌ Gradle check result for f235073: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
MetadataCreateIndexServiceTests.testCreateIndexWithContextDisabled #17291 |
@msfroh, please have a look in your spare time. Thank you very much. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot @kkewwei ! This is a nice improvement.
I left a couple of minor cleanup comments. Overall, it looks good.
server/src/main/java/org/opensearch/action/search/AbstractSearchAsyncAction.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/action/support/TransportActions.java
Outdated
Show resolved
Hide resolved
589f4d4
to
c34cedc
Compare
❌ Gradle check result for c34cedc: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
The flaky test may be related to #17357, I'm still finding the reason. |
PendingTasksBlocksIT.testPendingTasksWithClusterNotRecoveredBlock #17369 |
❌ Gradle check result for 17a63ef: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
17a63ef
to
ea2e674
Compare
return (OpenSearchException.status(e).getStatus() / 100 != 4) && (e.getCause() instanceof TaskCancelledException == false) | ||
// There exists a scenario where a primary shard (0 replicas) relocates and is in POST_RECOVERY on the | ||
// target node but already deleted on the source node. Search request should still work. | ||
|| (e.getCause() instanceof IndexNotFoundException); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@msfroh please help check whether is ok or not:
IndexNotFoundException is supported for testSearchWithRelocationAndSlowClusterStateProcessing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would 429 circuit breaker exceptions be considered non-retriable?
RemotePrimaryRelocationIT.testMixedModeRelocation_FailInFinalize #17364 |
ea2e674
to
fcfb2ba
Compare
❌ Gradle check result for fcfb2ba: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
fcfb2ba
to
e965796
Compare
❌ Gradle check result for e965796: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: kkewwei <kewei.11@bytedance.com> Signed-off-by: kkewwei <kkewwei@163.com>
e965796
to
d278191
Compare
❌ Gradle check result for d278191: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Description
Related Issues
Resolves #17361
Check List
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.