bookkeeper icon indicating copy to clipboard operation
bookkeeper copied to clipboard

Fix the bookie doesn't transition to writable

Open zymap opened this issue 1 year ago • 2 comments


Motivation

When bookie started with readonly, and the disk usage is smaller than the warning threshold, it won't transition to write mode. Notify the disk writable when init the bookie

image

zymap avatar Mar 06 '24 07:03 zymap

For the first case, I think if you start bookie with readonly, the bookie will in forceReadonly and won't be writable anymore. So even if the disk has space and it won't transition to the write mode.

For the third case, yes. It is very difficult to know if it is controlled by the rest API or the disk threshold for now. So if you want to make bookie into readonly forever, you need to make it to the forceReadonly, not the readonly state. So i think it should be acceptable?

zymap avatar Mar 08 '24 02:03 zymap

image Do we need safe run here?

mattisonchao avatar Apr 08 '24 04:04 mattisonchao