Skip to content

[Backport release-1.18] Add support for dead-letter topics in streaming subscriptions#1747

Closed
dapr-bot wants to merge 1 commit into
release-1.18from
backport-1746-to-release-1.18
Closed

[Backport release-1.18] Add support for dead-letter topics in streaming subscriptions#1747
dapr-bot wants to merge 1 commit into
release-1.18from
backport-1746-to-release-1.18

Conversation

@dapr-bot
Copy link
Copy Markdown
Collaborator

Backport 93c5acc from #1746.

#1746)

Adds optional deadLetterTopic parameter to the streaming subscribe APIs
on DaprPreviewClient / DaprClientImpl, wiring it through to the
SubscribeTopicEventsRequestInitialAlpha1.dead_letter_topic proto field.

New overloads:
- subscribeToEvents(pubsubName, topic, deadLetterTopic, listener, type)
- subscribeToTopic(pubsubName, topic, deadLetterTopic, type)
- subscribeToTopic(pubsubName, topic, deadLetterTopic, type, metadata)

Existing methods delegate to the new ones with a null deadLetterTopic,
and the field is only set on the request when a non-empty value is
provided. Adds unit tests covering both presence and absence of the
field on the gRPC initial frame.

Fixes: #1608

Signed-off-by: Siri Varma Vegiraju <s_vegiraju@apple.com>
Co-authored-by: Siri Varma Vegiraju <s_vegiraju@apple.com>
(cherry picked from commit 93c5acc)
@dapr-bot dapr-bot requested review from a team as code owners May 20, 2026 09:42
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2026

Codecov Report

❌ Patch coverage is 80.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.79%. Comparing base (0128bf6) to head (8f89939).

Files with missing lines Patch % Lines
...k/src/main/java/io/dapr/client/DaprClientImpl.java 80.00% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@                Coverage Diff                 @@
##             release-1.18    #1747      +/-   ##
==================================================
+ Coverage           76.77%   76.79%   +0.01%     
- Complexity           2259     2265       +6     
==================================================
  Files                 241      241              
  Lines                7066     7072       +6     
  Branches              740      742       +2     
==================================================
+ Hits                 5425     5431       +6     
+ Misses               1277     1276       -1     
- Partials              364      365       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@javier-aliaga
Copy link
Copy Markdown
Contributor

Closing in favor of #1748, which fixes the DCO check by rewriting the commit author to match the existing Signed-off-by trailer. Diff is identical.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants