-
Notifications
You must be signed in to change notification settings - Fork 345
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
Fixes + unit tests for streaming PubSub implementation #1415
Merged
Merged
Changes from 25 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
85dbcf0
Added null check - the proto suggests this shouldn't ever be null, bu…
WhitWaldo 054f6d9
Removed the Task.WhenAll making the operation non-blocking
WhitWaldo 2eb6b5d
Added unit test to validate that the subscription is no longer blocking
WhitWaldo 8593d8a
Removed unused line from previous test, added another test
WhitWaldo 6465ad1
Added another test
WhitWaldo c92e46a
More unit tests
WhitWaldo 0ccda6b
Added more unit tests
WhitWaldo 09bec43
Updated to make DaprPublishSubscribeClientBuilder configurable via a …
WhitWaldo 7900b0c
Added missing copyright statements
WhitWaldo 0ae4919
Merge branch 'master' into pubsub-fix
WhitWaldo 560aa2a
Added missing package reference
WhitWaldo 95b102d
Merge remote-tracking branch 'origin/pubsub-fix' into pubsub-fix
WhitWaldo f864511
Fixed bad reference (missed in merge)
WhitWaldo 51782b0
Fixed failing unit test
WhitWaldo e0b7de2
Tweak to only pass along EventMessage payloads to developers as it's …
WhitWaldo 3e1df92
Merge branch 'master' into pubsub-fix
WhitWaldo 1fce6b5
Was missing assignment of the Data property in the TopicMessage. Shou…
WhitWaldo 4e71535
Merge remote-tracking branch 'origin/pubsub-fix' into pubsub-fix
WhitWaldo b2ab6ea
Fix - return would be bad. Continue is the right move.
WhitWaldo d48a85e
Added a simple test
WhitWaldo eea8546
Merge branch 'master' into pubsub-fix
WhitWaldo fd2332c
Merge branch 'master' into pubsub-fix
WhitWaldo b11cf16
Merge branch 'master' into pubsub-fix
WhitWaldo be5a8a1
Merge branch 'master' into pubsub-fix
WhitWaldo 738f8be
Merge branch 'master' into pubsub-fix
WhitWaldo 35b8aca
Fixed unit tests
WhitWaldo 31724b2
Merged in tweaks from #1422
WhitWaldo a08b7e8
Merge branch 'master' into pubsub-fix
WhitWaldo b2ccb78
Merge branch 'master' into pubsub-fix
WhitWaldo 8fb65dd
Merge branch 'master' into pubsub-fix
WhitWaldo 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 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,18 @@ | ||
// ------------------------------------------------------------------------ | ||
// Copyright 2024 The Dapr Authors | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ------------------------------------------------------------------------ | ||
|
||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: InternalsVisibleTo("Dapr.Messaging.Test, PublicKey=0024000004800000940000000602000000240000525341310004000001000100b1f597635c44597fcecb493e2b1327033b29b1a98ac956a1a538664b68f87d45fbaada0438a15a6265e62864947cc067d8da3a7d93c5eb2fcbb850e396c8684dba74ea477d82a1bbb18932c0efb30b64ff1677f85ae833818707ac8b49ad8062ca01d2c89d8ab1843ae73e8ba9649cd28666b539444dcdee3639f95e2a099bb2")] | ||
|
||
|
This file contains 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 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 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
15 changes: 14 additions & 1 deletion
15
test/Dapr.Messaging.Test/PublishSubscribe/MessageHandlingPolicyTest.cs
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't kept up with the exception behavior of the latest .NET runtime; will this get handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should wrap any exception in an
AggregateException
that can be caught by any outer caller since there aren't any try/catch blocks that'll transparently handle it internally.