Skip to content

fix(eventhub): correct checkpoint migration sample - #49763

Open
Slai.life (huong8373tt-beep) wants to merge 1 commit into
Azure:mainfrom
huong8373tt-beep:fix/eventhub-migration-checkpoints-49723
Open

Slai.life (huong8373tt-beep) wants to merge 1 commit into
Azure:mainfrom
huong8373tt-beep:fix/eventhub-migration-checkpoints-49723

Conversation

@huong8373tt-beep

@huong8373tt-beep Slai.life (huong8373tt-beep) commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Use the defined EVENT_HUB_HOSTNAME value when building migrated checkpoint names.
  • Skip legacy leases that have no offset or sequence number, instead of writing invalid "None" checkpoint metadata.

Fixes #49723.

Validation

  • Extracted and compiled the migration guide's checkpoint Python snippet.
  • Assertions verify that the snippet uses EVENT_HUB_HOSTNAME and guards leases whose offset or sequence number is None.
  • git diff --check passed.
  • Azure Pipelines documentation/build validation passed, including Build Analyze and documentation checks.

This is a documentation-only correction to the v1-to-v5 migration sample; it changes no public API and requires no Azure-resource integration test or service credentials.

Disclosure and authorization

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

Copilot AI balanced review requested due to automatic review settings October 29, 2026 21:41
@huong8373tt-beep
Slai.life (huong8373tt-beep) marked this pull request as draft October 29, 2026 21:41
@github-actions github-actions Bot added Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Oct 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution Slai.life (@huong8373tt-beep)! We will review the pull request and get back to you soon.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are reported for the documentation-only checkpoint migration sample fixes.

No open issues 🎉

What changed in this PR

Corrects the Event Hubs v1-to-v5 checkpoint migration sample to address #49723. This documentation-only change does not alter SDK APIs.

Changes:

  • Uses the defined EVENT_HUB_HOSTNAME variable when building checkpoint blob names.
  • Skips legacy leases whose offset or sequence number is None, preventing invalid checkpoint metadata.
File Description
sdk/​eventhub/​azure-eventhub/​migration_guide.md Fixes the hostname reference and guards against migrating leases without checkpoint data.

Review effort: Balanced

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
10 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@huong8373tt-beep
Slai.life (huong8373tt-beep) marked this pull request as ready for review October 29, 2026 21:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution Community members are working on the issue customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

azure-eventhub migration guide: legacy checkpoint sample writes "None" metadata for partitions that were never checkpointed

2 participants