public void ParallelGetTransaction() { var path = Path.Combine(Path.GetTempPath(), $"rocksdb_test_{Guid.NewGuid()}"); var store = new RocksDBStore(path); Transaction <DumbAction>[] txs = new[] { Fx.Transaction1, Fx.Transaction2, Fx.Transaction3, }; try { store.PutTransaction(Fx.Transaction1); store.PutTransaction(Fx.Transaction2); store.PutTransaction(Fx.Transaction3); store.Dispose(); store = new RocksDBStore(path); Enumerable.Range(0, 3).AsParallel().ForAll(i => { Assert.NotNull(store.GetTransaction <DumbAction>(txs[i].Id)); }); } finally { store.Dispose(); Directory.Delete(path, true); } }