@Test
public void testRecoverDuringMemtableCompaction()
throws Exception
{
DbStringWrapper db = new DbStringWrapper(new Options().writeBufferSize(1000000), databaseDir);
// Trigger a long memtable compaction and reopen the database during it
db.put("foo", "v1"); // Goes to 1st log file
db.put("big1", longString(10000000, 'x')); // Fills memtable
db.put("big2", longString(1000, 'y')); // Triggers compaction