Hi all,

I thought I'd test the PR https://github.com/apache/bookkeeper/pull/2871 as
I hadn't used storage expansion at all. It seemed to work but I ran a
correctness test just in case and found that it "lost" 50% of my ledgers.

Looking at the code to my surprise it does not repartition the data across
the directories, which explained why 50% of the ledgers were "gone". I
expanded from one to two ledger dirs, so all the even ledger ids were fine,
but the odd ledger id read operations got routed to the new directory which
of course was empty. All the ledger data was still all in the original
ledger directory.

So either I am not understanding the use case for storage expansion (i.e.
you can only do it on an empty bookie) or this feature is majorly flawed.

Please confirm either way. I'll create an issue, if it is indeed flawed.

Jack

Reply via email to