Skip to content

Fix get corruption writebatch data after psync restart#221

Merged
karelrooted merged 1 commit intoapache:unstablefrom
karelrooted:fix/replication-psync-restart
Apr 15, 2021
Merged

Fix get corruption writebatch data after psync restart#221
karelrooted merged 1 commit intoapache:unstablefrom
karelrooted:fix/replication-psync-restart

Conversation

@karelrooted
Copy link
Copy Markdown
Contributor

Fix get corruption writebatch data (wrongly include writebatch size at the header of the writebatch data) after a restart cause by a failed storage->writebatch() , should always set incr_state_ to Incr_batch_size whether storage_->writebatch success or not , so the next incrementBatchLoopCB will start from the right step

git-hulk
git-hulk previously approved these changes Apr 15, 2021
Comment thread src/replication.cc Outdated
@git-hulk git-hulk self-requested a review April 15, 2021 07:03
@git-hulk
Copy link
Copy Markdown
Member

Many thanks to @karelrooted try hard to fix this hidden deep issue.

…t the header of the writebatch data) after a restart cause by a failed storage->writebatch() , should always set incr_state_ to Incr_batch_size whether storage_->writebatch success or not , so the next incrementBatchLoopCB will start from the right step
@ShooterIT
Copy link
Copy Markdown
Member

@karelrooted I think we need to port back to 1.3 branch

@karelrooted
Copy link
Copy Markdown
Contributor Author

@karelrooted I think we need to port back to 1.3 branch

👌

@karelrooted karelrooted merged commit d3930ac into apache:unstable Apr 15, 2021
@ShooterIT ShooterIT mentioned this pull request Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants