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

fix: mix of strong and weak consistencies #174

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

dorjesinpo
Copy link
Collaborator

When a partition hosts both weak and strong consistencies and there are recovered messages and the last recovered messages is of weak consistency, replica can issue implicit receipt for the weak consistency GUID. Primary will ignore that receipt because the collection of unreceipted messages is hashtable, not a map (for performance reasons). (Primary will process next ones).

Solution is to make sure implicit receipt is for the last strong consistency GUID.

This fix needs manual merge into the future FSM flow.

@dorjesinpo dorjesinpo requested a review from a team as a code owner December 20, 2023 16:47
@dorjesinpo dorjesinpo requested a review from kaikulimu December 20, 2023 16:47
@dorjesinpo dorjesinpo added the bug Something isn't working label Dec 20, 2023
Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

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

Code looks good. Just some minor comments

src/groups/mqb/mqbs/mqbs_filestore.h Outdated Show resolved Hide resolved
src/groups/mqb/mqbblp/mqbblp_storagemanager.cpp Outdated Show resolved Hide resolved
@kaikulimu kaikulimu assigned dorjesinpo and unassigned kaikulimu Dec 21, 2023
@dorjesinpo dorjesinpo assigned kaikulimu and unassigned dorjesinpo Dec 26, 2023
Copy link
Collaborator

@kaikulimu kaikulimu left a comment

Choose a reason for hiding this comment

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

LGTM!

@dorjesinpo dorjesinpo merged commit e619d69 into bloomberg:main Dec 26, 2023
7 checks passed
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