Skip to content

test(streaming): cover eventhub checkpoint flush on shutdown - #10321

Merged
ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:test/eventhub-checkpoint-shutdown-flush
Aug 2, 2026
Merged

ReubenBond merged 1 commit into
dotnet:mainfrom
ReubenBond:test/eventhub-checkpoint-shutdown-flush

Conversation

@ReubenBond

@ReubenBond ReubenBond commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Adds a focused regression test confirming that Event Hub receiver shutdown flushes the latest delivery progress to the checkpointer. This protects the checkpoint-gap fix from regressing during shutdown changes.

Microsoft Reviewers: Open in CodeFlow

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: ccadbbac-3066-4b68-aab0-135e7419f4d5
Copilot AI review requested due to automatic review settings August 1, 2026 16:32

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.

Pull request overview

Adds a targeted regression test in the Event Hubs streaming test suite to ensure that shutting down an EventHubAdapterReceiver flushes the most recent delivery progress to the configured checkpointer, helping prevent regressions around checkpoint persistence during shutdown.

Changes:

  • Extend the in-test TestCheckpointer to record which offset was flushed during FlushAsync.
  • Add a new BVT regression test asserting that Shutdown(...) triggers a flush and persists the latest delivery progress offset.
Show a summary per file
File Description
test/Extensions/Orleans.Streaming.EventHubs.Tests/CheckpointerTests/EventHubCheckpointerTests.cs Adds a regression test and minimal test instrumentation to verify checkpoint flush behavior on receiver shutdown.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@ReubenBond
ReubenBond merged commit 6092213 into dotnet:main Aug 2, 2026
67 checks passed
@ReubenBond
ReubenBond deleted the test/eventhub-checkpoint-shutdown-flush branch August 2, 2026 14:37
This was referenced Aug 28, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants