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 author procedure deserialize problem. #14675

Open
wants to merge 1 commit into
base: rc/1.3.3
Choose a base branch
from

Conversation

ColinLeeo
Copy link
Collaborator

In this pr, fix auth plan loss when use simple consensus.
Because of the failure of authorProcedure, simple consensus will truncate some author action.

Copy link
Collaborator

@Caideyipi Caideyipi left a comment

Choose a reason for hiding this comment

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

LGTM

} catch (IOException e) {
LOGGER.error("IO error when deserialize authplan.", e);
}
if (byteBuffer.hasRemaining()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

why removing this judgement? if you think this bytebuffer will always has remaining, you should add a else branch and then throw exeception

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 this pull request may close these issues.

3 participants