Skip to content
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

channelAcquisitionExceptionForWrites #39255

Merged
merged 2 commits into from
Mar 19, 2024

Conversation

xinlian12
Copy link
Member

Issue:
For write operation failed with ChannelAcquisition timeout exception, no cross region retry is attempted.

Fix:

  • Using ChannelAcquisitionException for channel acquisition timeout situation
  • Extends ChannelAcquisitionException of ChannelException
  • ChannelException is retriableException, which will be retried by ClientRetryPolicy

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

/azp run java - cosmos - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@xinlian12
Copy link
Member Author

Tested locally for the following tests:
readFeedDocumentsAfterSplit
readFeedDocumentsAfterSplit_maxScaleCount
createItem_withBulk_split
createItem_withCacheRefresh

@xinlian12
Copy link
Member Author

tryGetAddress_repeatedlySetUnhealthyStatus_forceRefresh - flaky tests

@xinlian12
Copy link
Member Author

/check-enforcer override

1 similar comment
@xinlian12
Copy link
Member Author

/check-enforcer override

@xinlian12 xinlian12 merged commit 01522dd into Azure:main Mar 19, 2024
68 of 73 checks passed
drielenr pushed a commit that referenced this pull request Apr 2, 2024
* channelAcquisitionException fix

---------

Co-authored-by: annie-mac <xinlian@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants