Skip to content
This repository was archived by the owner on Nov 17, 2020. It is now read-only.

rabbit_backing_queue: extend is_duplicate callback return values #283

Merged
merged 1 commit into from
Dec 4, 2018

Conversation

noxdafox
Copy link
Contributor

Allow the backing queue implementation to instruct the amqqueue process
on how to proceed when a message duplicate is encountered.

  • {true, drop} the message is a duplicate and should be ignored
  • {true, reject} the message is a duplicate and the publisher should
    receive a rejection
  • false the message is not deemed a duplicate
  • true kept for backward compatibility, equivalent to {true, drop}

Signed-off-by: Matteo Cafasso [email protected]

Allow the backing queue implementation to inform the amqqueue process
how to proceed when a message duplicate is encountered.

 * {true, drop} the message is a duplicate and should be ignored
 * {true, reject} the message is a duplicate and the publisher should
   receive a rejection
 * false the message is not deemed a duplicate
 * true kept for backward compatibility, equivalent to {true, drop}

Signed-off-by: Matteo Cafasso <[email protected]>
@pivotal-issuemaster
Copy link

@noxdafox Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@noxdafox
Copy link
Contributor Author

This based on the discussions on rabbitmq-server #1741

@pivotal-issuemaster
Copy link

@noxdafox Thank you for signing the Contributor License Agreement!

@michaelklishin
Copy link
Contributor

michaelklishin commented Nov 24, 2018

Thank you, I like how simple this might end up being. We will do the same due diligence as in #1741 next week :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants