• D
    Assertion failure for L0-L1 compactions. · a8d3aa2c
    Dhruba Borthakur 提交于
    Summary:
    For level-0 compactions, we try to find if can include more L0 files
    in the same compaction run. This causes the 'smallest' and 'largest'
    key to get extended to a larger range. But the suceeding call to
    ParentRangeInCompaction() was still using the earlier
    values of 'smallest' and 'largest',
    
    Because of this bug, a file in L1 can be part of two concurrent
    compactions: one L0-L1 compaction and the other L1-L2 compaction.
    
    This should not cause any data loss, but will cause an assertion
    failure with debug builds.
    
    Test Plan: make check
    
    Differential Revision: https://reviews.facebook.net/D10677
    a8d3aa2c
version_set.cc 76.0 KB