You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "ytong01 (via GitHub)" <gi...@apache.org> on 2023/08/21 05:59:38 UTC

[GitHub] [bookkeeper] ytong01 opened a new issue, #4056: Update a dirty page

ytong01 opened a new issue, #4056:
URL: https://github.com/apache/bookkeeper/issues/4056

   **QUESTION**
   
   Recently I'm reading the code associates with how  bookkeeper writes indexes for a ledger,  and there is a piece of logic about grab an available LedgerEntryPage from cache.
   
   <img width="752" alt="image" src="https://github.com/apache/bookkeeper/assets/32755366/6e4f5942-baeb-4d9c-af79-4cb74aa0c92d">
   
   <img width="633" alt="image" src="https://github.com/apache/bookkeeper/assets/32755366/f81256ef-27e1-4866-890a-a7a77940f842">
   
   <img width="590" alt="image" src="https://github.com/apache/bookkeeper/assets/32755366/3665f5a4-7cd3-4cb5-adcb-c180ca51f675">
   
   <img width="585" alt="image" src="https://github.com/apache/bookkeeper/assets/32755366/9208ff40-8333-4a49-a779-00f5797475e4">
   
   step 1: Try to get a available page from listOfFreePages
   step 2: reset the page
      step 2.1: reset the metadata, including set the entryKey to new EntryKey(-1, -1)
      step 2.2: put the LEP into lruCleanPageMap, note the key is new EntryKey(-1,-1) 
   step 3: Reassign the entryKey of LEP with new EntryKey(ledgerId, firstEntryId)
   step 4: increment the use count and remove LEP with the reassigned entryKey, but it can't remove the page since the key is different.
   
   We have a productive error about "Trying to update a dirty page" and I'm not sure it matters, would be appreciate if someone will reply on it.


-- 
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: commits-unsubscribe@bookkeeper.apache.org.apache.org

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


[GitHub] [bookkeeper] liangyuanpeng commented on issue #4056: Update a dirty page

Posted by "liangyuanpeng (via GitHub)" <gi...@apache.org>.
liangyuanpeng commented on issue #4056:
URL: https://github.com/apache/bookkeeper/issues/4056#issuecomment-1715003015

   Also can try to ask it at the slack or email list.


-- 
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: commits-unsubscribe@bookkeeper.apache.org

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