You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2022/07/26 10:02:17 UTC
[GitHub] [bookkeeper] StevenLuMT commented on a diff in pull request #3329: Fix data lost when configured multiple ledger directories
StevenLuMT commented on code in PR #3329:
URL: https://github.com/apache/bookkeeper/pull/3329#discussion_r929771426
##########
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/SingleDirectoryDbLedgerStorage.java:
##########
@@ -829,7 +831,7 @@ private void swapWriteCache() {
public void flush() throws IOException {
Checkpoint cp = checkpointSource.newCheckpoint();
checkpoint(cp);
- checkpointSource.checkpointComplete(cp, true);
+ checkpointSource.checkpointComplete(cp, true, ledgerDirsManager);
Review Comment:
@hangc0276
SingleDirectoryDbLedgerStorage's ledgerDirsManager can't cover all directories, only currently managed directory,I think you need all ledger' dirs
<img width="200" alt="image" src="https://user-images.githubusercontent.com/42990025/180979609-ce424961-0d19-4e90-bddb-e29af2af6bbe.png">
so the structure of LedgerDirsManager is very confusing, I am also optimizing this, see for details in mail talking with @eolivelli
https://lists.apache.org/thread/njw4yhdgv9db64notq5o3hc0k8bbpl8v
--
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: issues-unsubscribe@bookkeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org