Repository navigation
fix(channel): record the subscriber's status, not the dead letter sink's - #9612
RajPrakash681 wants to merge 3 commits into
Conversation
|
Hi @RajPrakash681. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: RajPrakash681 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Signed-off-by: RajPrakash681 <rjnt452@gmail.com>
810d56f to
23c6925
Compare
|
/ok-to-test |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9612 +/- ##
==========================================
- Coverage 51.33% 51.33% -0.01%
==========================================
Files 412 412
Lines 22189 22189
==========================================
- Hits 11391 11390 -1
- Misses 9917 9920 +3
+ Partials 881 879 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
|
@RajPrakash681 Hi ✋ PTAL. RajPrakash681#1 Thank you 🙏 |
Signed-off-by: RajPrakash681 <rjnt452@gmail.com>
Fixes #9611
Proposed Changes
Dispatcher.SendEventandSendMessagenow return theDispatchInfoof the failed request instead of the dead letter sink's. The InMemoryChannelkn.eventing.dispatch.durationseries for the Subscription then records the failed request's status code and duration, as it already does when there is no dead letter sink.kncloudevents.Dispatcher, so the Broker and request-reply are unchanged. The dead letter sink's request still shows inhttp.client.request.duration.subscription:series went from 10 × 202 to 10 × 405.kn.eventing.dispatch.durationsample sets its own Subscription's response status instead of adding it to the shared request labeler, so parallel deliveries keep their own status. A request that fails before timing starts, such as an OIDC token failure, records no sample (from @kahirokunn).Pre-review Checklist
Release Note
Docs
None needed.