You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/09/23 09:22:15 UTC

[GitHub] [iotdb] xingtanzjr opened a new pull request, #7421: [MultiLeader] Fix the issue that the wal won't be deleted when leader transfer to follower

xingtanzjr opened a new pull request, #7421:
URL: https://github.com/apache/iotdb/pull/7421

   ## Description
   In MultiLeader consensus, if a leader transfer to follower, the wal files may won't be deleted due to the reason that `SafeIndex` is not set to the latest one.
   
   In this PR, we change two places to solve this issue:
   1. update the `SafeIndex` to the latest one to WALReader rather than keep it the same as the persistence value in IndexController
   2. When finding an entry which is already deleted in WAL files, the WALReader will return the minimum one whose searchIndex is larger than the target entry


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [iotdb] qiaojialin merged pull request #7421: [MultiLeader] Fix the issue that the wal won't be deleted when leader transfer to follower

Posted by GitBox <gi...@apache.org>.
qiaojialin merged PR #7421:
URL: https://github.com/apache/iotdb/pull/7421


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org