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

MoveLeaseContainerCreationIntoConnector #561

Merged

Conversation

xinlian12
Copy link
Contributor

Issue:
For source connector, when configured with maxTasks > 1, only 1 tasks will run successfully, others will fail.

Root cause:
currently when there are multiple tasks configured, all of them will try to create the lease container, but only 1 will succeeded, others will fail.

Fixes:
Move the lease container creation into CosmosDBSourceConnector

Other changes included:
During task.stop(), adding some delays for closing cosmosClient as the PartitionProcessor will release the leases in the background.

@xinlian12 xinlian12 requested a review from a team as a code owner March 11, 2024 19:48
Copy link
Contributor

@aayush3011 aayush3011 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 xinlian12 merged commit 6ead162 into microsoft:dev Mar 12, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants