-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-1.11] Delivery failure (#1188)
* Add knativeerrordest to the event extension when delivery failure * Check if the extension is set, else set it. If not act like nothing happend * Cleanup and requeue variable * Set hedders in msg and requeue * Lint * Wrong place to set headers * Forgot the status code * Nack if there's a header * Send event directly to RabbitMQ * Handle error and send an event for it * Add functions to handle DLQ in the new way * Moved things around * Added missing arg * We should always Ack in dispatch to DLQ * Confirm mode. Added missing DLX argument * Fix for DLX * Missed variable * Initial testing work * Improved tests * Quick push * now the failed messages are directly routed to the DLQ exchange defined in the trigger, if its not defined in the trigger then in the broker, and if neither is defined then they are not rerouted * Update test. Still failing * fixed tests and removed event nil case when binding.ToEvent fails cause its always going to be nil * Added two simple test, to test the dlq function * fixed unit tests * this is just an smoke test for consumefromqueue function to see if it stops when a context cancel gets there * added defered confirmation to connection mock * Extended tests * improving coverage --------- Co-authored-by: Thomas Johansen <[email protected]> Co-authored-by: Gabriel Freites <[email protected]>
- Loading branch information
1 parent
cc5ce6a
commit 7031a4e
Showing
13 changed files
with
461 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.