basho / bitcask

because you need another a key/value storage engine
1.29k stars 173 forks source link

Recreate hintfile #273

Closed Konstantin74R closed 4 months ago

Konstantin74R commented 5 months ago

Hi, Hitfiles was dropped and riak starts very long time. My question: How can I recreate hintfiles? Addition: How recalculate CRC in data files for all key in them? In my errors {riak_kv_bitcask_backend,key_transform_to_1,[<<>>] and i don't know how determinate which vnode/key have not correctly CRC.

Riak 2.1.1

Bob-The-Marauder commented 4 months ago

Bitcask hintfiles are automatically generated by Bitcask. If you have a lot of data and all hintfiles have been deleted then the initial start up may be a little slower than normal but as Riak is usually kept running 24/7, that should not be a problem. Riak will function perfectly well without hint files and generate them on the fly as needed. If you have corrupt hintfile errors, delete the corrupt hintfiles and Riak will rebuild them.

Konstantin74R commented 4 months ago

Thank you!