forked from eclipse-vertx/vert.x
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clarify MessageProducer write future behavior (eclipse-vertx#4935)
See eclipse-vertx#4922 When publishing, the OutboundDeliveryContext (promise) can be completed or failed several times. This leads to confusing exceptions in application logs. The promise should be completed with tryFail/tryComplete to avoid redundant exceptions. Besides, the MessageProducer write future behavior should be clarified. The returned Future completion depends on the producer type: - send or request: the future is completed successfully if the message has been written; otherwise, the future is failed - publish: the future is failed if there is no recipient; otherwise, the future is completed successfully In any case, a successfully completed Future is not a delivery guarantee. Signed-off-by: Thomas Segismont <[email protected]>
- Loading branch information
1 parent
24ca7d4
commit 4fbfe00
Showing
4 changed files
with
59 additions
and
16 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
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