bookkeeper icon indicating copy to clipboard operation
bookkeeper copied to clipboard

Update a dirty page

Open ytong01 opened this issue 2 years ago • 2 comments

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.

image image image image

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.

ytong01 avatar Aug 21 '23 05:08 ytong01

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

liangyuanpeng avatar Sep 12 '23 05:09 liangyuanpeng

Could you provide more details about this error? I guess it might be related to some operating system issues, so your environment configurations could be crucial in diagnosing the problem.

xiezhx9 avatar Feb 22 '25 04:02 xiezhx9