rocksdb/utilities/transactions
Reid Horuff d133b08f68 Use correct sequence number when creating memtable
Summary:
copied from: 5ebfd2623a

Opening existing RocksDB attempts recovery from log files, which uses
wrong sequence number to create the memtable. This is a regression
introduced in change a400336.

This change includes a test demonstrating the problem, without the fix
the test fails with "Operation failed. Try again.: Transaction could not
check for conflicts for operation at SequenceNumber 1 as the MemTable
only contains changes newer than SequenceNumber 2.  Increasing the value
of the max_write_buffer_number_to_maintain option could reduce the
frequency of this error"

This change is a joint effort by Peter 'Stig' Edwards thatsafunnyname
and me.
Closes https://github.com/facebook/rocksdb/pull/1458

Differential Revision: D4143791

Pulled By: reidHoruff

fbshipit-source-id: 5a25033
2016-11-09 12:24:17 -08:00
..
optimistic_transaction_db_impl.cc optimistic transactions support for reinitialization 2016-03-07 19:03:09 -08:00
optimistic_transaction_db_impl.h optimistic transactions support for reinitialization 2016-03-07 19:03:09 -08:00
optimistic_transaction_impl.cc [rocksdb] Two Phase Transaction 2016-05-10 14:06:07 -07:00
optimistic_transaction_impl.h [rocksdb] Two Phase Transaction 2016-05-10 14:06:07 -07:00
optimistic_transaction_test.cc Use correct sequence number when creating memtable 2016-11-09 12:24:17 -08:00
transaction_base.cc [rocksdb] Two Phase Transaction 2016-05-10 14:06:07 -07:00
transaction_base.h make transaction WriteOptions modifiable 2016-06-27 12:53:30 -07:00
transaction_db_impl.cc Expose Transaction State Publicly 2016-10-07 11:58:53 -07:00
transaction_db_impl.h Expose transaction id, lock state information and transaction wait information 2016-09-30 11:41:21 -07:00
transaction_db_mutex_impl.cc Fix transaction locking 2016-02-16 17:15:05 -08:00
transaction_db_mutex_impl.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_impl.cc Implement deadlock detection 2016-10-19 19:45:57 -07:00
transaction_impl.h Make IsDeadlockDetect() virtual member of Transaction 2016-10-21 14:47:59 -07:00
transaction_lock_mgr.cc Implement deadlock detection 2016-10-19 19:45:57 -07:00
transaction_lock_mgr.h Implement deadlock detection 2016-10-19 19:45:57 -07:00
transaction_test.cc Implement deadlock detection 2016-10-19 19:45:57 -07:00
transaction_util.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
transaction_util.h Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00