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

Skip empty checkpoints #18059

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Conversation

pakrym
Copy link
Contributor

@pakrym pakrym commented Jan 19, 2021

T1 client can write checkpoints with a null offset and 0 sequenceNumber, they should be skipped.

@pakrym pakrym requested a review from serkantkaraca as a code owner January 19, 2021 21:44
@ghost ghost added the Event Hubs label Jan 19, 2021
@@ -621,7 +621,7 @@ public async Task ListCheckpointsUsesSequenceNumberAsTheStartingPositionWhenNoOf
/// </summary>
///
[Test]
public async Task ListCheckpointsUsesSequenceNumberAsTheStartingPositionWhenOffsetIsNullInLegacyCheckpoint()
public async Task ListCheckpointSkipsCheckpointsWhenOffsetIsNullInLegacyCheckpoint()
Copy link
Member

Choose a reason for hiding this comment

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

Is it never possible to have a valid sequence with a null offset? If so, we may want to have a couple of additional test scenarios.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@pakrym pakrym merged commit fd9f660 into Azure:master Jan 19, 2021
@pakrym pakrym deleted the pakrym/Skip-empty-checkpoints branch January 19, 2021 23:12
minnieliu pushed a commit to minnieliu/azure-sdk-for-net that referenced this pull request Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants