Repository navigation
Bump Microsoft.Orleans.Streaming from 10.2.0 to 10.3.1 #32
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
Merged
Mystikweb
merged 10 commits into
main
from
dependabot/nuget/Microsoft.Orleans.Streaming-10.3.1
Sep 22, 2026
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
feb4106
Bump Microsoft.Orleans.Streaming from 10.2.0 to 10.3.1
dependabot[bot] 99b3fc0
Bump Microsoft Orleans packages to version 10.3.1 and update Testcont…
Mystikweb 127cb9d
Enhance cancellation support in GetQueueMessagesAsync and MessagesDel…
Mystikweb 15e4851
Add unit tests for cancellation handling in KafkaQueueAdapterReceiver
Mystikweb 8396fdc
Enhance cancellation support in GetQueueMessagesAsync and MessagesDel…
Mystikweb 351ebf0
Enhance cancellation support in KafkaQueueAdapterReceiver; add tests …
Mystikweb ab1ac38
Refactor offset restoration logic in KafkaQueueAdapterReceiver; impro…
Mystikweb 8e58fba
Enhance cancellation handling in GetQueueMessagesAsync; add integrati…
Mystikweb b2a315e
Add cancellation handling instructions for Kafka receiver; update CI …
Mystikweb bfa8e52
Add fault handling in KafkaQueueAdapterReceiver; implement _isFaulted…
Mystikweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
test/Orleans.Streams.Confluent.Tests/KafkaQueueAdapterReceiverTests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| using FluentAssertions; | ||
| using Microsoft.Extensions.Logging.Abstractions; | ||
| using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
| using Orleans.Streams; | ||
|
|
||
| namespace Orleans.Streams.Confluent.Tests; | ||
|
|
||
| [TestClass] | ||
| public sealed class KafkaQueueAdapterReceiverTests | ||
| { | ||
| [TestMethod] | ||
| public async Task GetQueueMessagesAsync_WhenCancellationRequested_ThrowsOperationCanceledException() | ||
| { | ||
| using var cancellationTokenSource = new CancellationTokenSource(); | ||
| cancellationTokenSource.Cancel(); | ||
| var receiver = CreateReceiver(); | ||
|
|
||
| Func<Task> act = async () => await receiver.GetQueueMessagesAsync(10, cancellationTokenSource.Token); | ||
|
|
||
| await act.Should().ThrowAsync<OperationCanceledException>(); | ||
| } | ||
|
|
||
| [TestMethod] | ||
| public async Task MessagesDeliveredAsync_WhenCancellationRequested_ThrowsOperationCanceledException() | ||
| { | ||
| using var cancellationTokenSource = new CancellationTokenSource(); | ||
| cancellationTokenSource.Cancel(); | ||
| var receiver = CreateReceiver(); | ||
| var messages = new IBatchContainer[] | ||
| { | ||
| new KafkaBatchContainer(StreamId.Create("orders", "order-123"), ["created"], [], "orders-topic", 0, 0) | ||
| }; | ||
|
|
||
| Func<Task> act = async () => await receiver.MessagesDeliveredAsync(messages, cancellationTokenSource.Token); | ||
|
|
||
| await act.Should().ThrowAsync<OperationCanceledException>(); | ||
| } | ||
|
|
||
| private static KafkaQueueAdapterReceiver CreateReceiver() | ||
| => new( | ||
| "provider", | ||
| null!, | ||
| null!, | ||
| NullLogger<KafkaQueueAdapterReceiver>.Instance, | ||
| default, | ||
| "consumer-group"); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.