Skip to content

Conversation

jsquire
Copy link
Member

@jsquire jsquire commented Oct 17, 2025

Summary

The focus of these changes is to fix an issue where a legacy ownership record without checkpoint data was interpreted as a valid checkpoint and used to initialize a partition when no current generation checkpoint was present.

The focus of these changes is to fix an issue where
a legacy ownership record without checkpoint data
was interpreted as a valid checkpoint and used to
initialize a partition when no current generation
checkpoint was present.
@jsquire jsquire added this to the 2025-11 milestone Oct 17, 2025
@jsquire jsquire self-assigned this Oct 17, 2025
@jsquire jsquire requested a review from axisc as a code owner October 17, 2025 23:54
@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 23:54
@jsquire jsquire requested review from hmlam and sjkwak as code owners October 17, 2025 23:54
@jsquire jsquire added Event Hubs Client This issue is related to a non-management package labels Oct 17, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the Event Hubs checkpoint store where legacy ownership records without checkpoint data (null or empty offset) were incorrectly interpreted as valid checkpoints. The fix ensures that only legacy records with valid offset data are used to initialize partitions, preventing the processor from starting at incorrect positions.

Key Changes:

  • Removed fallback logic that allowed sequence numbers to be used when offset was invalid
  • Added test coverage for legacy checkpoints with null or empty offset values

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
sdk/eventhub/Microsoft.Azure.WebJobs.Extensions.EventHubs/CHANGELOG.md Documents the bug fix in the changelog
sdk/eventhub/Azure.Messaging.EventHubs.sln Removes two unused project references from solution file
sdk/eventhub/Azure.Messaging.EventHubs.Shared/tests/BlobCheckpointStore/BlobsCheckpointStoreInternalTests.cs Adds test cases to verify legacy checkpoints without offset are properly rejected
sdk/eventhub/Azure.Messaging.EventHubs.Shared/src/BlobCheckpointStore/BlobCheckpointStoreInternal.cs Removes the problematic sequence number fallback logic

…ointStore/BlobsCheckpointStoreInternalTests.cs

Co-authored-by: Copilot <[email protected]>
@jsquire jsquire merged commit da1afbf into Azure:main Oct 20, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue is related to a non-management package Event Hubs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants