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

fixRetryPolicyWhenSplitHandlingDisabledForChangeFeed #40738

Conversation

xinlian12
Copy link
Member

Issue:
ChangeFeedProcessor and CosmosDB Kafka Connector use changeFeed to get all changes. Since split/merge is specifically handled in ChangeFeedProcessor and Kafka Connector itself, so we purposely want to disable the split/merge handling in azure-cosmos SDK.

However, when using ChangeFeedProcessor.disableSplitHandling, we should have only disable the split/merge retry policy, but currently it has disabled all retry policies including ClientRetryPolicy, ResourceThrottleRetryPolicy, NameCacheStaleRetryPolicy

Fix:
Only disable PartitionKeyRangeGoneRetryPolicy when disableSplitHandling

@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 - Thanks

@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 xinlian12 merged commit 9baee61 into Azure:main Jun 22, 2024
77 checks passed
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.

3 participants