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

CosmosDB: fix a regression in ChangeFeedProcessor when handling split events #22718

Merged
merged 3 commits into from
Jul 6, 2021

Conversation

milismsft
Copy link
Contributor

When partition splitting occurs, we wrongly resume the change feeds from zero for the new partitions.
This is a regression introduced in SDK version 4.12 as part of the change feed pull model related changes.
The fix is to directly set the "parent" lease continuation token into the new leases that get created as result of a split.

…rom zero for the new partitions.

This is a regression introduced in SDK version 4.12 as part of the change feed pull model related changes.
The fix is to directly set the "parent" lease continuation token into the new leases that get created as result of a split.
@milismsft milismsft added the cosmos:v4-item Indicates this feature will be shipped as part of V4 release train label Jul 1, 2021
@milismsft milismsft added this to the [2021] July milestone Jul 1, 2021
@milismsft milismsft self-assigned this Jul 1, 2021
@ghost ghost added the Cosmos label Jul 1, 2021
Copy link
Contributor

@j82w j82w left a comment

Choose a reason for hiding this comment

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

Unblocking the PR, but still believe some test needs to be added to verify this scenario and prevent future regressions.

@j82w j82w dismissed their stale review July 1, 2021 14:23

Unblocking the PR, but still believe some test needs to be added to verify this scenario and prevent future regressions.

Copy link
Contributor

@moderakh moderakh left a comment

Choose a reason for hiding this comment

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

LGTM except for the comment @j82w Jake added.

Copy link
Member

@kushagraThapar kushagraThapar left a comment

Choose a reason for hiding this comment

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

LGTM

@kushagraThapar
Copy link
Member

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kushagraThapar
Copy link
Member

/azp run java - cosmos - test

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@kushagraThapar
Copy link
Member

/azp run java - cosmos - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kushagraThapar kushagraThapar merged commit 2bbe6c8 into Azure:main Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cosmos:v4-item Indicates this feature will be shipped as part of V4 release train Cosmos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants