1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-04-21 08:25:53 +03:00

469 Commits

Author SHA1 Message Date
Teemu Ollakka
37efaba3e5 Bytes and statement streaming unit. 2018-06-13 16:51:23 +03:00
Teemu Ollakka
94b4d3a7db Allow replaying - preparing transition to get rid of extra state
checks in prepare calls.
2018-06-13 16:00:09 +03:00
Teemu Ollakka
4c1ea388f8 Call before_prepare()/after_prepare() for applier in before_commit()
if no 2PC is required.
2018-06-13 15:34:49 +03:00
Teemu Ollakka
4ccd1490d4 Fixes required to 1PC streaming replay to pass. 2018-06-13 14:33:58 +03:00
Teemu Ollakka
6677e3cfd8 More unit tests for streaming replication. 2018-06-13 14:13:55 +03:00
Teemu Ollakka
f07885e204 Call before/after prepare from before_commit() when 1PC
before_prepare() call prepares removal SR fragments from stable
storage and the logic should be duplicated in before_commit()
otherwise.
2018-06-13 13:04:33 +03:00
Teemu Ollakka
a7adcb01ba Unit test for 2PC where rollback is done immediately after after_prepare() 2018-06-13 12:35:42 +03:00
Teemu Ollakka
37c56cb5ec Moved 2PC tests into separate compliation unit. 2018-06-13 12:22:03 +03:00
Teemu Ollakka
9ff5d61111 Unit test for SR non-committing fragment failure 2018-06-13 11:36:22 +03:00
Teemu Ollakka
461247adc1 Renamed unit test doubles 2018-06-13 11:23:48 +03:00
Teemu Ollakka
265d9b3322 Unit tests for SR with two statements, SR rollback. 2018-06-13 10:18:46 +03:00
Teemu Ollakka
292072bf56 Reorganized coverage report, missing test cases for id. 2018-06-12 19:00:05 +03:00
Teemu Ollakka
174ecfe578 Moved tests under separate directory. 2018-06-12 18:17:32 +03:00
Teemu Ollakka
9e8e6d47ba * Unit test for SR 2PC
* Removed redundant data class
* Introduced const_buffer and mutable_buffer
* Transaction context and client context interface refactoring
2018-06-12 18:04:32 +03:00
Teemu Ollakka
0186342092 Initial replicating side implementation of streaming replication 2018-06-12 15:44:20 +03:00
Teemu Ollakka
d9d41a4787 * Fixed wrong error code returned from client_context::before_command
* Fixed raw depends_on assignment from native to wsrep::seqno
* More debug logging
2018-06-12 13:17:01 +03:00
Teemu Ollakka
3456a8b953 Unit tests for identifier class. 2018-06-12 11:22:02 +03:00
Teemu Ollakka
65b4ce9123 Moved gtid class out of provider.hpp 2018-06-12 11:03:50 +03:00
Teemu Ollakka
d6f185c278 Refactored provider specific code out of server_context.cpp 2018-06-12 10:52:56 +03:00
Teemu Ollakka
97d9f93648 Refactored seqno and id classes out of provider.hpp 2018-06-12 10:20:58 +03:00
Teemu Ollakka
f506faa360 More unit tests for various error conditions on certification. 2018-06-11 18:17:00 +03:00
Teemu Ollakka
82081e459d Unit test case for autocommit replaying. 2018-06-11 17:25:34 +03:00
Teemu Ollakka
a5411669fe Unit test for append key/data, BF abort during commit order enter. 2018-06-11 16:41:27 +03:00
Teemu Ollakka
d248195690 Transaction context unit tests for failures in certify_commit() 2018-06-11 15:56:40 +03:00
Teemu Ollakka
459ada6b3b * Run transaction context unit tests for both sync and async rm
* Unit test case for BF abort before before_statement() and
  after after_statement()
* Cleaned up empty client_context_test.cpp
2018-06-11 14:54:37 +03:00
Teemu Ollakka
58ea925dc3 * Unit test for BF abort after after_command_before_result()
* Revised logic for handling BF abort around after command operations
* Added lighweight thread class for runtime thread id checking
2018-06-11 11:48:07 +03:00
Teemu Ollakka
e18c9d597f * Unit test for idle client BF abort.
* Fixes to seqno conversion between provider and provider library.
* Server context applying side fixes.
2018-06-10 19:27:09 +03:00
Teemu Ollakka
2619615e02 Fixed problems with server_context unit tests.
Added WITH_ASAN and WITH_TSAN options, enabled unit tests by default.
2018-06-10 15:31:41 +03:00
Teemu Ollakka
ca615fcbd8 Provider abstraction code compiles. 2018-06-10 12:46:42 +03:00
Teemu Ollakka
e74b214c9c Provider type abstraction, partially completed. 2018-06-09 23:28:02 +03:00
Teemu Ollakka
2cecb3defe After statement result enum, is_autocommit() virtual method. 2018-06-09 20:01:46 +03:00
Teemu Ollakka
15f483ca7f Added wsrep-API/v26 submodule which will point to correct branch
of current wsrep-API v26 version.
2018-06-05 12:45:25 +03:00
Teemu Ollakka
d3cb537d1e Changed project name to wsrep-lib. 2018-06-03 21:56:28 +03:00
Teemu Ollakka
188bda1339 Split client_context::after_command() into two stages, before
sending result to client and after the result was sent. Added
s_result state to client_context states.
2018-06-02 15:55:54 +03:00
Teemu Ollakka
c73e7c8f5d Do not call before/after command/statement for replaying client. 2018-05-31 17:11:02 +03:00
Teemu Ollakka
ae93785a57 Allow read-only access to transaction context through
client context to enforce use of client context interface
for manipulating transaction context state.
2018-05-31 16:55:57 +03:00
Teemu Ollakka
2f46758064 Fixed after_statement() call to replay if the state was changed
to s_must_replay in rollback() called from after_statement().
2018-05-31 10:59:15 +03:00
Teemu Ollakka
646a2b328e Added TOI client mode, replced string with const char* in debug calls. 2018-05-21 16:42:40 +03:00
Teemu Ollakka
90f6eb1ecf Scripts for benchmarking providers, dbms sim fast exit option. 2018-05-09 12:23:44 +03:00
Teemu Ollakka
fbe51627a1 Generate documentation from API headers only. 2018-05-07 19:47:39 +03:00
Teemu Ollakka
0988978826 Moved public API includes under include/trrep 2018-05-07 19:40:10 +03:00
Teemu Ollakka
db5bcb50ef Renamed SST related interface methods. 2018-05-07 19:04:41 +03:00
Teemu Ollakka
abf8ef34fc SST sent/received impls for mock provider, added assertions 2018-05-06 15:43:07 +03:00
Teemu Ollakka
e7cabb713f Improved dbms sim statistics. 2018-05-02 16:53:17 +03:00
Teemu Ollakka
8e501fc03b Fixed several issues with BF aborts and error reporting.
Client context override_error() is now implemented in
client_context base class. On error virtual method will be called
to notify derived classes.

Started refactoring logging utility.
2018-05-02 13:55:38 +03:00
Teemu Ollakka
e3ca0d699b Added logger class, BF abort debugging. 2018-04-30 17:28:18 +03:00
Teemu Ollakka
3c334fbc87 More strict server context state management. 2018-04-29 18:42:36 +03:00
Teemu Ollakka
c301c0896b Refactoring. 2018-04-29 17:15:24 +03:00
Teemu Ollakka
c1f8f2c37d Client context documentation, refactoring. 2018-04-27 17:03:09 +03:00
Teemu Ollakka
28026ea4fc Started documenting client context. 2018-04-27 12:51:05 +03:00