Skip to content

[IOTDB-1583] Raft log failed to be committed in cluster version#3832

Merged
neuyilan merged 11 commits intoapache:masterfrom
cigarl:master
Aug 31, 2021
Merged

[IOTDB-1583] Raft log failed to be committed in cluster version#3832
neuyilan merged 11 commits intoapache:masterfrom
cigarl:master

Conversation

@cigarl
Copy link
Contributor

@cigarl cigarl commented Aug 25, 2021

The bug is caused by a raft log is oversize.

When the size of a log is bigger than buffer (default 16MB),it can not be persistent due to the BufferOverflowException. But the log has committed in memory, we will commit the same log again.

So,we should check the size of the log at the entrance to avoid that leader will send this log to followers.

BTW, this case may cause the next plan failed in server mode. Because we didn't clear the buffer, it still contains some information from the previous log.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module - Cluster PRs for the cluster module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants