@ -521,6 +521,7 @@ class WritePreparedTransactionTest
std : : get < 2 > ( GetParam ( ) ) ) { } ;
std : : get < 2 > ( GetParam ( ) ) ) { } ;
} ;
} ;
# ifndef ROCKSDB_VALGRIND_RUN
class SnapshotConcurrentAccessTest
class SnapshotConcurrentAccessTest
: public WritePreparedTransactionTestBase ,
: public WritePreparedTransactionTestBase ,
virtual public : : testing : : WithParamInterface <
virtual public : : testing : : WithParamInterface <
@ -539,6 +540,7 @@ class SnapshotConcurrentAccessTest
size_t split_id_ ;
size_t split_id_ ;
size_t split_cnt_ ;
size_t split_cnt_ ;
} ;
} ;
# endif // ROCKSDB_VALGRIND_RUN
class SeqAdvanceConcurrentTest
class SeqAdvanceConcurrentTest
: public WritePreparedTransactionTestBase ,
: public WritePreparedTransactionTestBase ,
@ -564,6 +566,7 @@ INSTANTIATE_TEST_CASE_P(
: : testing : : Values ( std : : make_tuple ( false , false , WRITE_PREPARED ) ,
: : testing : : Values ( std : : make_tuple ( false , false , WRITE_PREPARED ) ,
std : : make_tuple ( false , true , WRITE_PREPARED ) ) ) ;
std : : make_tuple ( false , true , WRITE_PREPARED ) ) ) ;
# ifndef ROCKSDB_VALGRIND_RUN
INSTANTIATE_TEST_CASE_P (
INSTANTIATE_TEST_CASE_P (
TwoWriteQueues , SnapshotConcurrentAccessTest ,
TwoWriteQueues , SnapshotConcurrentAccessTest ,
: : testing : : Values ( std : : make_tuple ( false , true , WRITE_PREPARED , 0 , 20 ) ,
: : testing : : Values ( std : : make_tuple ( false , true , WRITE_PREPARED , 0 , 20 ) ,
@ -635,6 +638,7 @@ INSTANTIATE_TEST_CASE_P(
std : : make_tuple ( false , false , WRITE_PREPARED , 7 , 10 ) ,
std : : make_tuple ( false , false , WRITE_PREPARED , 7 , 10 ) ,
std : : make_tuple ( false , false , WRITE_PREPARED , 8 , 10 ) ,
std : : make_tuple ( false , false , WRITE_PREPARED , 8 , 10 ) ,
std : : make_tuple ( false , false , WRITE_PREPARED , 9 , 10 ) ) ) ;
std : : make_tuple ( false , false , WRITE_PREPARED , 9 , 10 ) ) ) ;
# endif // ROCKSDB_VALGRIND_RUN
TEST_P ( WritePreparedTransactionTest , CommitMapTest ) {
TEST_P ( WritePreparedTransactionTest , CommitMapTest ) {
WritePreparedTxnDB * wp_db = dynamic_cast < WritePreparedTxnDB * > ( db ) ;
WritePreparedTxnDB * wp_db = dynamic_cast < WritePreparedTxnDB * > ( db ) ;
@ -841,6 +845,7 @@ TEST_P(WritePreparedTransactionTest, CheckAgainstSnapshotsTest) {
// This test is too slow for travis
// This test is too slow for travis
# ifndef TRAVIS
# ifndef TRAVIS
# ifndef ROCKSDB_VALGRIND_RUN
// Test that CheckAgainstSnapshots will not miss a live snapshot if it is run in
// Test that CheckAgainstSnapshots will not miss a live snapshot if it is run in
// parallel with UpdateSnapshots.
// parallel with UpdateSnapshots.
TEST_P ( SnapshotConcurrentAccessTest , SnapshotConcurrentAccessTest ) {
TEST_P ( SnapshotConcurrentAccessTest , SnapshotConcurrentAccessTest ) {
@ -919,6 +924,7 @@ TEST_P(SnapshotConcurrentAccessTest, SnapshotConcurrentAccessTest) {
}
}
printf ( " \n " ) ;
printf ( " \n " ) ;
}
}
# endif // ROCKSDB_VALGRIND_RUN
# endif // TRAVIS
# endif // TRAVIS
// This test clarifies the contract of AdvanceMaxEvictedSeq method
// This test clarifies the contract of AdvanceMaxEvictedSeq method