lni / dragonboat

A feature complete and high performance multi-group Raft library in Go.
Apache License 2.0
4.98k stars 533 forks source link

logdb: fixed pebble L0CompactionFileThreshold option #267

Closed shimingyah closed 1 year ago

shimingyah commented 1 year ago

Pebble should use L0CompactionFileThreshold option in crl-release-22.x. The meaning of the L0CompactionThreshold changes between crl-release-21.x and crl-release-22.x.

Otherwise, the logdb status will always be busy after write a amount of data, and restarting is useless.

lni commented 1 year ago

Thanks a lot for raising this issue. Will review it tomorrow.

lni commented 1 year ago

It seems to me that the real reason is not the introduction of the L0CompactionFileThreshold in April 2022, it is really about the so called L0 sublevels.