Skip to content
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

MQB: wait for unconfirmed before buffering confirms #336

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

dorjesinpo
Copy link
Collaborator

@dorjesinpo dorjesinpo commented Jun 25, 2024

FIx: do not start buffering CONFIRMs in (remote) queue upon deconfigure response (upon StopRequest processing) because that is too early when waiting for unconfirmed.

Early buffering increases chances of duplicate PUSH messages - those received by RemoteQueue between deconfigure response and finishing waiting for unconfirmed.

Still need to start buffering broadcast PUTs early, otherwise broadcast PUT can get lost.

Still, duplicates are possible in few ITs because of the scenario when a CONFIRM had passed Proxy but did not reach the replication. New Primary then redelivers and the Proxy cannot detect the duplicate because it had removed the GUID upon the first CONFIRM

@dorjesinpo dorjesinpo added the bug Something isn't working label Jun 25, 2024
@dorjesinpo dorjesinpo requested a review from a team as a code owner June 25, 2024 23:39
@678098 678098 changed the title wait for unconfirmed before buffering confirms MQB: wait for unconfirmed before buffering confirms Jun 26, 2024
@dorjesinpo dorjesinpo changed the title MQB: wait for unconfirmed before buffering confirms MQB: [WIP] wait for unconfirmed before buffering confirms Jun 26, 2024
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
@dorjesinpo dorjesinpo force-pushed the fix/remote-queue-confirms-buffering branch from 4af02cf to fbbb695 Compare June 26, 2024 14:35
@dorjesinpo dorjesinpo changed the title MQB: [WIP] wait for unconfirmed before buffering confirms MQB: wait for unconfirmed before buffering confirms Jun 26, 2024
Copy link
Collaborator

@pniedzielski pniedzielski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏻

@dorjesinpo dorjesinpo merged commit c71d6c5 into main Jul 2, 2024
25 checks passed
@chrisbeard chrisbeard deleted the fix/remote-queue-confirms-buffering branch October 10, 2024 13:36
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
alexander-e1off pushed a commit to alexander-e1off/blazingmq that referenced this pull request Oct 24, 2024
Signed-off-by: dorjesinpo <129227380+dorjesinpo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants