Update AsyncRetryableStage + tests#7192
Open
dagnir wants to merge 2 commits into
Open
Conversation
dagnir
force-pushed
the
dongie/adaptive-fix-pt4-2
branch
from
July 24, 2026 20:20
fea4acb to
164c461
Compare
- Update AsyncRetryableStage to use the new *Async methods from RetryStrategy - Update AdaptiveRetryRateLimitingTest to test both sync and async clients - Update other tests to wait on future to avoid timing issues
If S3MetaRequestPauseObservable#pause is invoked before S3MetaRequestPauseObservable#subscribe is executed, an NPE can occur. This can happen if the transfer hasn't actually begin before the pause() was invoked. Fix this by returning `null` in this case, which `CrtFileUpload` treats as transfer not yet started.
dagnir
force-pushed
the
dongie/adaptive-fix-pt4-2
branch
from
July 24, 2026 20:21
164c461 to
70480b3
Compare
davidh44
reviewed
Jul 24, 2026
| if (acquireFailureDelay.isPresent()) { | ||
| Duration acquireDelay = acquireFailureDelay.get(); | ||
| context.executionAttributes().putAttribute(LAST_BACKOFF_DELAY_DURATION, acquireDelay); | ||
| cf.complete(Either.right(acquireDelay)); |
Contributor
There was a problem hiding this comment.
Need a return here in this branch after complete(). Maybe a test case for this?
Contributor
Author
There was a problem hiding this comment.
Ah good catch. I don't think it actually matters though, because if you fall through to the second complete, it becomes a no-op.
| CompletableFuture<AllTypesResponse> responseFuture = client.allTypes(r -> { | ||
| }); | ||
| responseFuture.cancel(true); | ||
| // Thread.sleep(1000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Modifications
Testing
Screenshots (if appropriate)
Types of changes
Checklist
mvn installsucceedsscripts/new-changescript and following the instructions. Commit the new file created by the script in.changes/next-releasewith your changes.License