Queues quorum helper implementation + tests update#41
Merged
OlivierLePichon merged 3 commits intomasterfrom Feb 13, 2025
Merged
Queues quorum helper implementation + tests update#41OlivierLePichon merged 3 commits intomasterfrom
OlivierLePichon merged 3 commits intomasterfrom
Conversation
99f55a8 to
6b830be
Compare
8c127a9 to
6e3fc47
Compare
6e3fc47 to
f2c6755
Compare
seguins
approved these changes
Feb 13, 2025
Poltuu
reviewed
Feb 13, 2025
Poltuu
left a comment
There was a problem hiding this comment.
j'ai jamais touché à cette lib, il vaut mieux demander à qqun d'autre :)
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pour simplifier le passage aux queues quorums, cette version ajoute un bool
isQuorumoù c'est nécessaire (cad dans toutes méthodesDeclareQueueXxx).Par exemple sur
IMessagingService:Mettre
isQuoruma true:queueArgumentsun ["x-queue-type"]="quorum"queueNamepassé par "-q"Le 2. est nécessaire parce qu'il n'est pas possible de recréer une queue ayant même nom sans, au paravent, détruire la précédente.
Il a été décidé de ne pas mettre de valeur par défaut à
isQuorumpour rendre cette version breaking et forcer le choix.Comme le
queueNamefournis en paramètre n'est plus toujours le nom qui a été donné à la queue, leeffectiveQueuename(aveceffectiveQueueName = isQuorum?queueName+"-q":queueName) est retourné par toute méthodeDeclareQueueXxxxCette valeur retournés doit être utilisée par exemple pour déclarer des bindings comme fait dans :
ATTENTION: Les queues quorums doivent impérativement être durable et non auto delete. Si
isQuorumest passé à true à unDeclareQueueXxxd'une queue qui ne l'est pas, vous obtiendrez un :