Repository navigation
Knative enhance failed events extensions in mt channel broker - #6569
Conversation
Codecov ReportBase: 81.89% // Head: 81.83% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #6569 +/- ##
==========================================
- Coverage 81.89% 81.83% -0.06%
==========================================
Files 235 235
Lines 11756 11833 +77
==========================================
+ Hits 9627 9684 +57
- Misses 1652 1669 +17
- Partials 477 480 +3
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
| } | ||
|
|
||
| // isFailure returns true if the status code is not a successful HTTP status. | ||
| func isFailure(statusCode int) bool { |
There was a problem hiding this comment.
could we somehow/where extract this?
see:
eventing/pkg/channel/message_dispatcher.go
Line 334 in 7097458
f154226 to
8e1a7d2
Compare
|
/retest |
|
looks like there is some funk going on in here: Let me test your branch, and this test locally |
|
/assign @matzew |
| } | ||
|
|
||
| // Install the trigger | ||
| f.Setup("install trigger", trigger.Install(via, brokerName, cfg...)) |
There was a problem hiding this comment.
oh, I got the problem, there is a problem with a judgement condition: https://github.com/knative/eventing/pull/6569/files#:~:text=if%20destination.,var%20errExtensionInfo%20ErrExtensionInfo |
| } | ||
|
|
||
| // Install the trigger | ||
| f.Setup("install trigger", trigger.Install(via, brokerName, cfg...)) |
There was a problem hiding this comment.
for the SubscriberReturnedErrorNoData
There was a problem hiding this comment.
Ok, I'll format it
|
@matzew Seems everything all right :) |
|
/test unit-tests |
|
/retest |
|
/test upgrade-tests |
| additionalReplyHeaders: http.Header{"Retry-After": []string{"10"}}, | ||
| expectedResponseHeaders: http.Header{"Retry-After": []string{"10"}}, |
| Name: "Knative Broker - DeadLetterSink - with Extensions", | ||
|
|
||
| Features: []*feature.Feature{ | ||
| brokerSubscriberUnreachable(), |
6fe215a to
edeb56f
Compare
edeb56f to
efb9fa4
Compare
3ccafa2 to
fb3cc2e
Compare
| dispatchTime := time.Since(start) | ||
| if err != nil { | ||
| err = fmt.Errorf("failed to dispatch message: %w", err) | ||
| responseErr.sendErr = true |
There was a problem hiding this comment.
I think we directly use resp != nil to infer sendErr
abf8afb to
d71566b
Compare
pierDipi
left a comment
There was a problem hiding this comment.
Thanks a lot @liuchangyan, this will make debugging so much easier!
@matzew any other comment?
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liuchangyan, matzew, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #6541
Signed-off-by: Teresaliu [email protected]
Proposed Changes
knativeerrordest, knativeerrordata,knativeerrorcodeto MTChannelBroker and corresponding Reconciler Test to BrokerPre-review Checklist
Release Note
Docs