rocksdb/utilities/transactions
Yu Zhang a101c9de60 Return "invalid argument" when read timestamp is too old (#10109)
Summary:
With this change, when a given read timestamp is smaller than the column-family's full_history_ts_low, Get(), MultiGet() and iterators APIs will return Status::InValidArgument().
Test plan
```
$COMPILE_WITH_ASAN=1 make -j24 all
$./db_with_timestamp_basic_test --gtest_filter=DBBasicTestWithTimestamp.UpdateFullHistoryTsLow
$ make -j24 check
```

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10109

Reviewed By: riversand963

Differential Revision: D36901126

Pulled By: jowlyzhang

fbshipit-source-id: 255feb1a66195351f06c1d0e42acb1ff74527f86
2022-06-06 14:36:22 -07:00
..
lock fix: build on risc-v (#9215) 2022-05-17 17:33:01 -07:00
optimistic_transaction.cc Add further tests to ASSERT_STATUS_CHECKED (2) (#7698) 2020-12-09 21:21:16 -08:00
optimistic_transaction.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
optimistic_transaction_db_impl.cc Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
optimistic_transaction_db_impl.h Revise APIs related to user-defined timestamp (#8946) 2022-02-01 22:19:01 -08:00
optimistic_transaction_test.cc MemTableList::TrimHistory now use allocated bytes (#9020) 2021-12-02 11:45:39 -08:00
pessimistic_transaction.cc Return "invalid argument" when read timestamp is too old (#10109) 2022-06-06 14:36:22 -07:00
pessimistic_transaction.h Support user-defined timestamps in write-committed txns (#9629) 2022-03-08 16:20:59 -08:00
pessimistic_transaction_db.cc Support user-defined timestamps in write-committed txns (#9629) 2022-03-08 16:20:59 -08:00
pessimistic_transaction_db.h Support user-defined timestamps in write-committed txns (#9629) 2022-03-08 16:20:59 -08:00
snapshot_checker.cc Use STATIC_AVOID_DESTRUCTION for static objects with non-trivial destructors (#9958) 2022-05-17 09:39:22 -07:00
transaction_base.cc Support WBWI for keys having timestamps (#9603) 2022-02-22 14:23:01 -08:00
transaction_base.h Support user-defined timestamps in write-committed txns (#9629) 2022-03-08 16:20:59 -08:00
transaction_db_mutex_impl.cc Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
transaction_db_mutex_impl.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
transaction_test.cc Deflake Transaction stress tests (#10063) 2022-05-30 12:34:43 -07:00
transaction_test.h Support user-defined timestamps in write-committed txns (#9629) 2022-03-08 16:20:59 -08:00
transaction_util.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
transaction_util.h Update TransactionUtil::CheckKeyForConflict to also use timestamps (#9162) 2021-11-15 12:52:18 -08:00
write_committed_transaction_ts_test.cc Point-lookup returns timestamps of Delete and SingleDelete (#10056) 2022-06-03 20:00:42 -07:00
write_prepared_transaction_test.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
write_prepared_txn.cc Update protection info on recovered logs data (#9875) 2022-04-28 14:42:00 -07:00
write_prepared_txn.h Replace namespace name "rocksdb" with ROCKSDB_NAMESPACE (#6433) 2020-02-20 12:09:57 -08:00
write_prepared_txn_db.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
write_prepared_txn_db.h Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
write_unprepared_transaction_test.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
write_unprepared_txn.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
write_unprepared_txn.h Replace tracked_keys with a new LockTracker interface in TransactionDB (#7013) 2020-08-06 12:38:00 -07:00
write_unprepared_txn_db.cc Add further tests to ASSERT_STATUS_CHECKED (2) (#7698) 2020-12-09 21:21:16 -08:00
write_unprepared_txn_db.h WriteUnPrepared: Pass in correct subbatch count during rollback (#6463) 2020-02-28 11:19:32 -08:00