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 committedIndex after truncate #316

Closed
yuz10 opened this issue Feb 22, 2024 · 1 comment
Closed

fix committedIndex after truncate #316

yuz10 opened this issue Feb 22, 2024 · 1 comment

Comments

@yuz10
Copy link
Contributor

yuz10 commented Feb 22, 2024

if the log is truncated, committedIndex may be greater than ledgerEndIndex, then if the member is selected as leader, the rocketmq cluster is down, because rocketmq cluster leader must be equal:
image

the leader log:
D1
image

the followers log:
D2
image
D0
image

the leader memery:
image

image

@yuz10
Copy link
Contributor Author

yuz10 commented Feb 22, 2024

@yuz10 yuz10 closed this as completed Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant