Don't use async handler#7415
Conversation
Signed-off-by: Calum Murray <cmurray@redhat.com>
|
/cc @pierDipi |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7415 +/- ##
=======================================
Coverage 76.74% 76.74%
=======================================
Files 253 253
Lines 13916 13916
=======================================
Hits 10680 10680
Misses 2702 2702
Partials 534 534 ☔ View full report in Codecov by Sentry. |
|
/retest |
Signed-off-by: Calum Murray <cmurray@redhat.com>
| if dispatchResult.err != nil { | ||
| f.logger.Error("Fanout had an error", zap.Error(dispatchResult.err)) | ||
| dispatchResultForFanout.err = dispatchResult.err | ||
| return dispatchResultForFanout |
There was a problem hiding this comment.
@pierDipi I think this early return may cause a race condition in the synchronous case, as it may lead to the context being cancelled (request completes) before all of the dead letter sink requests have been made if there is more than one error.
However, this means that we won't aggregate the errors and are only showing the final error. Should we add some kind of error aggregation here?
There was a problem hiding this comment.
Error aggregation sounds good, we could track it into a separate issue
d02844b to
ff97c1d
Compare
Signed-off-by: Calum Murray <cmurray@redhat.com>
cf33d77 to
54078cd
Compare
Signed-off-by: Calum Murray <cmurray@redhat.com>
| env.Prerequisite(ctx, t, broker.GoesReady("default", b.WithEnvConfig()...)) | ||
| env.TestSet(ctx, t, broker.ControlPlaneConformance("default", b.WithEnvConfig()...)) | ||
| env.TestSet(ctx, t, broker.DataPlaneConformance("default")) | ||
| env.TestSet(ctx, t, broker.ControlPlaneConformance("default", b.WithEnvConfig()...)) |
There was a problem hiding this comment.
@pierDipi changing the order of these tests caused the DataPlaneConformance tests to pass 😕
|
/retest |
|
/test upgrade-tests |
|
/test upgrade-tests |
|
3/3 green on the last commit (retesting again to see if the flakes are gone) |
|
Still green, going to try again for the flakes: |
|
/test upgrade-tests |
|
/unhold |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, 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 |
* Don't use async handler Signed-off-by: Calum Murray <cmurray@redhat.com> * Fix Kn-Namespace header, potential race condition for sync receiver Signed-off-by: Calum Murray <cmurray@redhat.com> * try refactoring test Signed-off-by: Calum Murray <cmurray@redhat.com> * take 2 on test fix Signed-off-by: Calum Murray <cmurray@redhat.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
* Don't use async handler Signed-off-by: Calum Murray <cmurray@redhat.com> * Fix Kn-Namespace header, potential race condition for sync receiver Signed-off-by: Calum Murray <cmurray@redhat.com> * try refactoring test Signed-off-by: Calum Murray <cmurray@redhat.com> * take 2 on test fix Signed-off-by: Calum Murray <cmurray@redhat.com> --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
* Don't use async handler * Fix Kn-Namespace header, potential race condition for sync receiver * try refactoring test * take 2 on test fix --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
* Don't use async handler * Fix Kn-Namespace header, potential race condition for sync receiver * try refactoring test * take 2 on test fix --------- Signed-off-by: Calum Murray <cmurray@redhat.com>
To try to improve the consistency of the system when using the IMC, this PR is testing switching to using the sync handler
Proposed Changes
Pre-review Checklist
Release Note
Docs