@ -80,7 +80,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
// pass some time first, otherwise the first a few keys write time are going
// pass some time first, otherwise the first a few keys write time are going
// to be zero, and internally zero has special meaning: kUnknownSeqnoTime
// to be zero, and internally zero has special meaning: kUnknownSeqnoTime
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ; } ) ;
int sst_num = 0 ;
int sst_num = 0 ;
@ -88,7 +88,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
for ( ; sst_num < kNumTrigger ; sst_num + + ) {
for ( ; sst_num < kNumTrigger ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun ( [ & ] {
dbfull ( ) - > TEST_WaitForPerio dicTaskRun ( [ & ] {
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
} ) ;
} ) ;
}
}
@ -110,7 +110,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
for ( ; sst_num < kNumTrigger * 2 ; sst_num + + ) {
for ( ; sst_num < kNumTrigger * 2 ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun ( [ & ] {
dbfull ( ) - > TEST_WaitForPerio dicTaskRun ( [ & ] {
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
} ) ;
} ) ;
}
}
@ -124,7 +124,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
for ( ; sst_num < kNumTrigger * 3 ; sst_num + + ) {
for ( ; sst_num < kNumTrigger * 3 ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun ( [ & ] {
dbfull ( ) - > TEST_WaitForPerio dicTaskRun ( [ & ] {
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( kKeyPerSec ) ) ;
} ) ;
} ) ;
}
}
@ -143,7 +143,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
AssertKeyTemperature ( 20 , Temperature : : kCold ) ;
AssertKeyTemperature ( 20 , Temperature : : kCold ) ;
for ( int i = 0 ; i < 30 ; i + + ) {
for ( int i = 0 ; i < 30 ; i + + ) {
dbfull ( ) - > TEST_WaitForPeridicTaskRun ( [ & ] {
dbfull ( ) - > TEST_WaitForPerio dicTaskRun ( [ & ] {
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 20 * kKeyPerSec ) ) ;
mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 20 * kKeyPerSec ) ) ;
} ) ;
} ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
@ -161,7 +161,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicUniversal) {
// the compaction will not get the new seqno->time sampling to decide the last
// the compaction will not get the new seqno->time sampling to decide the last
// a few data's time.
// a few data's time.
for ( int i = 0 ; i < 5 ; i + + ) {
for ( int i = 0 ; i < 5 ; i + + ) {
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1000 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1000 ) ) ; } ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
}
}
@ -192,7 +192,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicLevel) {
// pass some time first, otherwise the first a few keys write time are going
// pass some time first, otherwise the first a few keys write time are going
// to be zero, and internally zero has special meaning: kUnknownSeqnoTime
// to be zero, and internally zero has special meaning: kUnknownSeqnoTime
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
int sst_num = 0 ;
int sst_num = 0 ;
@ -200,7 +200,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicLevel) {
for ( ; sst_num < 4 ; sst_num + + ) {
for ( ; sst_num < 4 ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -222,7 +222,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicLevel) {
for ( ; sst_num < 14 ; sst_num + + ) {
for ( ; sst_num < 14 ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -243,7 +243,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicLevel) {
// Wait some time, with each wait, the cold data is increasing and hot data is
// Wait some time, with each wait, the cold data is increasing and hot data is
// decreasing
// decreasing
for ( int i = 0 ; i < 30 ; i + + ) {
for ( int i = 0 ; i < 30 ; i + + ) {
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 200 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 200 ) ) ; } ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
uint64_t pre_hot = hot_data_size ;
uint64_t pre_hot = hot_data_size ;
@ -262,7 +262,7 @@ TEST_F(SeqnoTimeTest, TemperatureBasicLevel) {
// hot data might not be empty, because if we don't write new data, there's
// hot data might not be empty, because if we don't write new data, there's
// no seqno->time sampling available to the compaction
// no seqno->time sampling available to the compaction
for ( int i = 0 ; i < 5 ; i + + ) {
for ( int i = 0 ; i < 5 ; i + + ) {
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1000 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1000 ) ) ; } ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
ASSERT_OK ( db_ - > CompactRange ( cro , nullptr , nullptr ) ) ;
}
}
@ -324,7 +324,7 @@ TEST_P(SeqnoTimeTablePropTest, BasicSeqnoToTimeMapping) {
// Write a key every 10 seconds
// Write a key every 10 seconds
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -357,7 +357,7 @@ TEST_P(SeqnoTimeTablePropTest, BasicSeqnoToTimeMapping) {
// Write a key every 1 seconds
// Write a key every 1 seconds
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i + 190 ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i + 190 ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 1 ) ) ; } ) ;
}
}
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
@ -393,7 +393,7 @@ TEST_P(SeqnoTimeTablePropTest, BasicSeqnoToTimeMapping) {
// Write a key every 200 seconds
// Write a key every 200 seconds
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i + 380 ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i + 380 ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 200 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 200 ) ) ; } ) ;
}
}
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
@ -435,7 +435,7 @@ TEST_P(SeqnoTimeTablePropTest, BasicSeqnoToTimeMapping) {
// Write a key every 100 seconds
// Write a key every 100 seconds
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i + 570 ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i + 570 ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
seq_end = dbfull ( ) - > GetLatestSequenceNumber ( ) ;
@ -516,7 +516,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// Write some data and increase the current time
// Write some data and increase the current time
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -536,7 +536,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// Write some data to the default CF (without preclude_last_level feature)
// Write some data to the default CF (without preclude_last_level feature)
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -544,7 +544,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// Write some data to the CF one
// Write some data to the CF one
for ( int i = 0 ; i < 20 ; i + + ) {
for ( int i = 0 ; i < 20 ; i + + ) {
ASSERT_OK ( Put ( 1 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 1 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( 1 ) ) ;
ASSERT_OK ( Flush ( 1 ) ) ;
@ -568,7 +568,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// Add more data to CF "two" to fill the in memory mapping
// Add more data to CF "two" to fill the in memory mapping
for ( int i = 0 ; i < 2000 ; i + + ) {
for ( int i = 0 ; i < 2000 ; i + + ) {
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
seqs = dbfull ( ) - > TEST_GetSeqnoToTimeMapping ( ) . TEST_GetInternalMapping ( ) ;
seqs = dbfull ( ) - > TEST_GetSeqnoToTimeMapping ( ) . TEST_GetInternalMapping ( ) ;
@ -592,7 +592,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// enabled have flushed, the in-memory seqno->time mapping should be cleared
// enabled have flushed, the in-memory seqno->time mapping should be cleared
for ( int i = 0 ; i < 10 ; i + + ) {
for ( int i = 0 ; i < 10 ; i + + ) {
ASSERT_OK ( Put ( 0 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 0 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
seqs = dbfull ( ) - > TEST_GetSeqnoToTimeMapping ( ) . TEST_GetInternalMapping ( ) ;
seqs = dbfull ( ) - > TEST_GetSeqnoToTimeMapping ( ) . TEST_GetInternalMapping ( ) ;
@ -603,7 +603,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
for ( int j = 0 ; j < 3 ; j + + ) {
for ( int j = 0 ; j < 3 ; j + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( 2 ) ) ;
ASSERT_OK ( Flush ( 2 ) ) ;
@ -623,7 +623,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
for ( int j = 0 ; j < 2 ; j + + ) {
for ( int j = 0 ; j < 2 ; j + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( Put ( 0 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 0 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( 0 ) ) ;
ASSERT_OK ( Flush ( 0 ) ) ;
@ -638,7 +638,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiCFs) {
// Write some data to CF "two", but don't flush to accumulate
// Write some data to CF "two", but don't flush to accumulate
for ( int i = 0 ; i < 1000 ; i + + ) {
for ( int i = 0 ; i < 1000 ; i + + ) {
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
ASSERT_OK ( Put ( 2 , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
ASSERT_GE (
ASSERT_GE (
@ -682,7 +682,7 @@ TEST_P(SeqnoTimeTablePropTest, MultiInstancesBasic) {
WriteOptions wo ;
WriteOptions wo ;
for ( int i = 0 ; i < 200 ; i + + ) {
for ( int i = 0 ; i < 200 ; i + + ) {
ASSERT_OK ( dbi - > Put ( wo , Key ( i ) , " value " ) ) ;
ASSERT_OK ( dbi - > Put ( wo , Key ( i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 100 ) ) ; } ) ;
}
}
SeqnoToTimeMapping seqno_to_time_mapping = dbi - > TEST_GetSeqnoToTimeMapping ( ) ;
SeqnoToTimeMapping seqno_to_time_mapping = dbi - > TEST_GetSeqnoToTimeMapping ( ) ;
@ -720,7 +720,7 @@ TEST_P(SeqnoTimeTablePropTest, SeqnoToTimeMappingUniversal) {
for ( ; sst_num < kNumTrigger - 1 ; sst_num + + ) {
for ( ; sst_num < kNumTrigger - 1 ; sst_num + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
ASSERT_OK ( Flush ( ) ) ;
ASSERT_OK ( Flush ( ) ) ;
@ -742,7 +742,7 @@ TEST_P(SeqnoTimeTablePropTest, SeqnoToTimeMappingUniversal) {
// Trigger a compaction
// Trigger a compaction
for ( int i = 0 ; i < kNumKeys ; i + + ) {
for ( int i = 0 ; i < kNumKeys ; i + + ) {
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
ASSERT_OK ( Put ( Key ( sst_num * ( kNumKeys - 1 ) + i ) , " value " ) ) ;
dbfull ( ) - > TEST_WaitForPeridicTaskRun (
dbfull ( ) - > TEST_WaitForPerio dicTaskRun (
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
[ & ] { mock_clock_ - > MockSleepForSeconds ( static_cast < int > ( 10 ) ) ; } ) ;
}
}
sst_num + + ;
sst_num + + ;