Race condition: Missing entries in key value store

Anyone have insight on this? It’s rather perplexing, and if there is actual synchronization work I have to do in my application to use badger correctly, and robustly, I would very much like to know.

time.Sleep() commands are a serious code smell, and I don’t trust they will keep working when running on a constrained device (i.e. slower, fewer cores) or container.