• Y
    Fix test in LITE mode (#6267) · a8b1085a
    Yanqin Jin 提交于
    Summary:
    Currently, the recently-added test DBTest2.SwitchMemtableRaceWithNewManifest
    fails in LITE mode since SetOptions() returns "Not supported". I do not want to
    put `#ifndef ROCKSDB_LITE` because it reduces test coverage. Instead, just
    trigger compaction on a different column family. The bg compaction thread
    calling LogAndApply() may race with thread calling SwitchMemtable().
    
    Test Plan (dev server):
    make check
    OPT=-DROCKSDB_LITE make check
    
    or run DBTest2.SwitchMemtableRaceWithNewManifest 100 times.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/6267
    
    Differential Revision: D19301309
    
    Pulled By: riversand963
    
    fbshipit-source-id: 88cedcca2f985968ed3bb234d324ffa2aa04ca50
    a8b1085a
db_test2.cc 149.0 KB