eolivelli commented on issue #3466:
URL: https://github.com/apache/bookkeeper/issues/3466#issuecomment-1241938958

   > Not sure if it has something to do with this pr: ISSUE 3220-Autorecovery 
does not process underreplicated empty ledgers
   > #3239
   > If network packet loss causes a bookie to be determined to be unavailable. 
the ledgers on this unavailable bookie will become underreplicated and this 
ledgers will be closed by the autorecovery service.
   
   @zhaohaidao your idea is interesting.
   
   The fact that the client tries to read from entry 0 even if the ledger is 
empty means that something CLOSED the ledger and set the LAC to 0 (and not -1).
   
   I am saying that LAC should be at least 0 because of these logs:
   `2022-07-20T15:59:48.794605613+00:00 stdout F 2022-07-20 15:59:48,794 
11507078 [core-1] ERROR i.p.s.server.logs.DurableLog - DurableLog[13] Recovery 
FAILED.`
   It seems (please @RaulGracia confirm) that DurableLog is scanning the 
ledger, and it receives an error during a "readEntries" operation.
   `readEntries` fails fast if you try to read after the local value of LAC, 
but here we see that the BK client is trying to perform the PendingReadOp and 
so locally LAC is >= 0
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to