-
Notifications
You must be signed in to change notification settings - Fork 604
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
Don't use async handler #7415
Don't use async handler #7415
Conversation
Signed-off-by: Calum Murray <[email protected]>
/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 <[email protected]>
@@ -302,7 +303,6 @@ func (f *FanoutEventHandler) dispatch(ctx context.Context, subs []Subscription, | |||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error aggregation sounds good, we could track it into a separate issue
d02844b
to
ff97c1d
Compare
Signed-off-by: Calum Murray <[email protected]>
cf33d77
to
54078cd
Compare
Signed-off-by: Calum Murray <[email protected]>
env.TestSet(ctx, t, broker.DataPlaneConformance("default")) | ||
env.TestSet(ctx, t, broker.ControlPlaneConformance("default", b.WithEnvConfig()...)) |
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.
@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 |
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.
Great!
/lgtm
/approve
[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
Needs 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 <[email protected]> * Fix Kn-Namespace header, potential race condition for sync receiver Signed-off-by: Calum Murray <[email protected]> * try refactoring test Signed-off-by: Calum Murray <[email protected]> * take 2 on test fix Signed-off-by: Calum Murray <[email protected]> --------- Signed-off-by: Calum Murray <[email protected]>
* Don't use async handler Signed-off-by: Calum Murray <[email protected]> * Fix Kn-Namespace header, potential race condition for sync receiver Signed-off-by: Calum Murray <[email protected]> * try refactoring test Signed-off-by: Calum Murray <[email protected]> * take 2 on test fix Signed-off-by: Calum Murray <[email protected]> --------- Signed-off-by: Calum Murray <[email protected]>
* 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 <[email protected]>
* 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 <[email protected]>
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