1
0
mirror of https://github.com/codership/wsrep-lib.git synced 2025-07-28 20:02:00 +03:00

Commit Graph

  • 635eaf4c29 Refactored high priority service out of client service. Teemu Ollakka 2018-07-02 18:22:24 +03:00
  • 658a84a7d4 Fixed BF abort in sync rollback mode. Teemu Ollakka 2018-07-02 10:09:48 +03:00
  • db18e91c42 Implemented client last_written_gtid, sync_wait Teemu Ollakka 2018-06-30 07:44:09 +03:00
  • 3d2af88428 Propagate incoming address to provider. Teemu Ollakka 2018-06-29 17:46:11 +03:00
  • c35f59cb5b Deal with init before SST case. Teemu Ollakka 2018-06-29 17:02:35 +03:00
  • 0851970c53 Bootstrap server service, fixes to server state management Teemu Ollakka 2018-06-29 11:54:33 +03:00
  • 666eccf463 Allow connected - connected server state transition. Teemu Ollakka 2018-06-28 15:41:18 +03:00
  • d46c5a6e38 Fixes to server state management. Teemu Ollakka 2018-06-28 14:50:01 +03:00
  • a4f5997045 Client state history, fixed races in server state, logging improv Teemu Ollakka 2018-06-28 11:56:28 +03:00
  • 203dd2875a Deal with desyncs in on_sync() call. Teemu Ollakka 2018-06-27 16:15:09 +03:00
  • fd9cf87141 * Return provider status from provider connect * Call to get server status variables along with provider variables * Deal with intermediate non-prims Teemu Ollakka 2018-06-27 15:36:52 +03:00
  • d659c6bebd Allow negative seqnos Teemu Ollakka 2018-06-27 12:02:38 +03:00
  • b1a374a9ba Fixed pause/desync logic. Allow concurrent callers to desync, this should be dealt with the provider. However, only one thread is allowed to call pause at the time to keep track of implicit desyncs when pausing the provider. Teemu Ollakka 2018-06-26 13:42:42 +03:00
  • 2a53198f5c Protocol version and connected gtid Teemu Ollakka 2018-06-26 11:34:05 +03:00
  • bd0ba5b01d Fixed key conversion in wsrep_provider_v26::enter_toi() Teemu Ollakka 2018-06-26 09:13:56 +03:00
  • ccf5c08c35 * Removed client_context from server_service::log_view() params * Call log_view() from server_state view handler Teemu Ollakka 2018-06-26 08:03:22 +03:00
  • 1e03ae5b05 Enter and leave commit order with rollback fragment. Teemu Ollakka 2018-06-25 19:12:19 +03:00
  • 4e152ee79d * Added applier side TOI commit order enter and leave * Added cleanup_transaction() method to client_service in order to provide a way to make DBMS side cleanup when transaction is cleaned up Teemu Ollakka 2018-06-25 14:09:19 +03:00
  • cad9176474 TOI replicating and applying codepaths Teemu Ollakka 2018-06-25 09:28:51 +03:00
  • 6a369a5d0e Fix for case where joiner shifts directly to synced state. Teemu Ollakka 2018-06-24 15:49:12 +03:00
  • d3821d88a5 Partial implementation of methods needed for SST. Teemu Ollakka 2018-06-24 14:35:47 +03:00
  • 1f6a6db1e9 * Fixes to SST time server state management * Logging tweaks * Boolean to tune behavior on exception Teemu Ollakka 2018-06-22 13:03:12 +03:00
  • 8f0e112c47 Renamed invalid to undefined. More utility functions. Teemu Ollakka 2018-06-21 16:50:44 +03:00
  • 81ac78913a Initial implementation of client_state TOI mode. Teemu Ollakka 2018-06-21 11:45:18 +03:00
  • 3a8861b26b * Moved causal reads/gtid wait into server state interface * Changed undefined seqno to be defined as -1 Teemu Ollakka 2018-06-21 10:37:55 +03:00
  • ef0fb72b73 * Added size exceeded error code * Return provider status from selected client_state calls * Added more methods to provider interface Teemu Ollakka 2018-06-20 19:44:20 +03:00
  • bf7dad6815 Added open(), close(), cleanup() methods to client_state. Teemu Ollakka 2018-06-20 10:07:55 +03:00
  • 779f84e5df Made client_service, transaction independent of provider. Teemu Ollakka 2018-06-19 14:54:58 +03:00
  • 94f77eacf0 Include id.hpp, transaction_id.hpp explicitly from server_state.hpp Teemu Ollakka 2018-06-19 12:49:55 +03:00
  • 5c3c972947 Provide access to native wsrep API handle. Teemu Ollakka 2018-06-19 09:41:04 +03:00
  • 0e4c7f16a9 Pass ws_handle as const reference to provider replay() Teemu Ollakka 2018-06-19 09:36:15 +03:00
  • d1a1e298e9 Removed wsrep_api.h dependency from view.hpp Teemu Ollakka 2018-06-18 20:39:25 +03:00
  • 60fb119fa1 Cleaned up client_state interface. Teemu Ollakka 2018-06-18 18:55:38 +03:00
  • cf231bdf2d Refactored server_service out of server_state. Teemu Ollakka 2018-06-18 17:45:24 +03:00
  • ef5751943d Refactored most of the server_state interface into server_service abstract interface. Teemu Ollakka 2018-06-18 16:52:41 +03:00
  • 4a92841cb2 Moved commit()/rollback() to transaction_termination_service interface. Teemu Ollakka 2018-06-18 15:31:57 +03:00
  • 03043d3f25 Removing client_state dependency from client_service. Teemu Ollakka 2018-06-18 10:21:02 +03:00
  • af3119a58b Removed ostream include from public API headers. Teemu Ollakka 2018-06-17 13:55:37 +03:00
  • 78cb0270af Added initial interface definition for server service. Teemu Ollakka 2018-06-17 12:52:24 +03:00
  • 0dac901b39 Improved client state documentation. Teemu Ollakka 2018-06-17 11:12:20 +03:00
  • ef4baa9f9d Renamed server_context to server_state. Teemu Ollakka 2018-06-17 10:07:48 +03:00
  • 790c2bec4e Renamed transcation_context to transaction Teemu Ollakka 2018-06-17 10:04:00 +03:00
  • dd28b173ab Renamed client_context to client_state. Teemu Ollakka 2018-06-17 10:00:13 +03:00
  • 97ee96987e Fixed dbsim BF aborts Teemu Ollakka 2018-06-17 09:52:56 +03:00
  • ad0617c660 Using javadoc style for doc comments Teemu Ollakka 2018-06-16 15:23:14 +03:00
  • 47cb8e604c Renamed client context m_applier to m_high_priority Teemu Ollakka 2018-06-16 15:08:31 +03:00
  • d12513303a Removed redundant dbms_simulator.cpp Teemu Ollakka 2018-06-16 14:58:01 +03:00
  • dae5231dfc Added topology argument to dbsim to allow testing master/slave Teemu Ollakka 2018-06-16 11:30:50 +03:00
  • 6dcac8ce4d Finished dbsim integration with refactored client API. Teemu Ollakka 2018-06-16 10:25:14 +03:00
  • ae68122d59 Refactored dbms simulator. Survives SST. Teemu Ollakka 2018-06-15 16:25:27 +03:00
  • b3f60b7be1 Refactoring continued. Teemu Ollakka 2018-06-15 15:13:22 +03:00
  • 4fbf1d0cf8 Refactoring dbms simulator. Intermediate commit. Teemu Ollakka 2018-06-15 12:58:36 +03:00
  • cb3b2fbf9e Fixed unit test failures caused by refactoring. Teemu Ollakka 2018-06-14 23:13:25 +03:00
  • 256000f934 Refactored client_service interface out of client_context Teemu Ollakka 2018-06-14 19:44:38 +03:00
  • 1ca3f7b649 Don't release ws_handle_ for replaying before commit order enter. Teemu Ollakka 2018-06-14 15:11:56 +03:00
  • 0b6e49474f Tests and fixes for replaying. Teemu Ollakka 2018-06-14 15:00:40 +03:00
  • ca6286d8b2 Use provider for replaying in mock client_context instead of calling server context apply directly. Teemu Ollakka 2018-06-14 12:41:34 +03:00
  • 6246d9d3b8 Allow must_abort - cert_failed transition. Teemu Ollakka 2018-06-14 11:58:47 +03:00
  • a8ab9c6dbd SR applying implementation, unit tests. Teemu Ollakka 2018-06-14 11:14:40 +03:00
  • 39c9ef8a63 Tests for transaction context, server context state strings. Teemu Ollakka 2018-06-13 17:24:37 +03:00
  • 3cd7a11cb2 Extracted streaming_context into separa teclass Teemu Ollakka 2018-06-13 16:59:25 +03:00
  • 37efaba3e5 Bytes and statement streaming unit. Teemu Ollakka 2018-06-13 16:51:23 +03:00
  • 94b4d3a7db Allow replaying - preparing transition to get rid of extra state checks in prepare calls. Teemu Ollakka 2018-06-13 16:00:09 +03:00
  • 4c1ea388f8 Call before_prepare()/after_prepare() for applier in before_commit() if no 2PC is required. Teemu Ollakka 2018-06-13 15:34:49 +03:00
  • 4ccd1490d4 Fixes required to 1PC streaming replay to pass. Teemu Ollakka 2018-06-13 14:33:58 +03:00
  • 6677e3cfd8 More unit tests for streaming replication. Teemu Ollakka 2018-06-13 14:13:55 +03:00
  • f07885e204 Call before/after prepare from before_commit() when 1PC Teemu Ollakka 2018-06-13 13:04:33 +03:00
  • a7adcb01ba Unit test for 2PC where rollback is done immediately after after_prepare() Teemu Ollakka 2018-06-13 12:35:42 +03:00
  • 37c56cb5ec Moved 2PC tests into separate compliation unit. Teemu Ollakka 2018-06-13 12:22:03 +03:00
  • 9ff5d61111 Unit test for SR non-committing fragment failure Teemu Ollakka 2018-06-13 11:36:22 +03:00
  • 461247adc1 Renamed unit test doubles Teemu Ollakka 2018-06-13 11:23:48 +03:00
  • 265d9b3322 Unit tests for SR with two statements, SR rollback. Teemu Ollakka 2018-06-13 10:18:46 +03:00
  • 292072bf56 Reorganized coverage report, missing test cases for id. Teemu Ollakka 2018-06-12 19:00:05 +03:00
  • 174ecfe578 Moved tests under separate directory. Teemu Ollakka 2018-06-12 18:17:32 +03:00
  • 9e8e6d47ba * Unit test for SR 2PC * Removed redundant data class * Introduced const_buffer and mutable_buffer * Transaction context and client context interface refactoring Teemu Ollakka 2018-06-12 18:04:32 +03:00
  • 0186342092 Initial replicating side implementation of streaming replication Teemu Ollakka 2018-06-12 15:44:20 +03:00
  • d9d41a4787 * Fixed wrong error code returned from client_context::before_command * Fixed raw depends_on assignment from native to wsrep::seqno * More debug logging Teemu Ollakka 2018-06-12 13:17:01 +03:00
  • 3456a8b953 Unit tests for identifier class. Teemu Ollakka 2018-06-12 11:22:02 +03:00
  • 65b4ce9123 Moved gtid class out of provider.hpp Teemu Ollakka 2018-06-12 11:03:50 +03:00
  • d6f185c278 Refactored provider specific code out of server_context.cpp Teemu Ollakka 2018-06-12 10:52:56 +03:00
  • 97d9f93648 Refactored seqno and id classes out of provider.hpp Teemu Ollakka 2018-06-12 10:20:58 +03:00
  • f506faa360 More unit tests for various error conditions on certification. Teemu Ollakka 2018-06-11 18:17:00 +03:00
  • 82081e459d Unit test case for autocommit replaying. Teemu Ollakka 2018-06-11 17:25:34 +03:00
  • a5411669fe Unit test for append key/data, BF abort during commit order enter. Teemu Ollakka 2018-06-11 16:41:27 +03:00
  • d248195690 Transaction context unit tests for failures in certify_commit() Teemu Ollakka 2018-06-11 15:56:40 +03:00
  • 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 Teemu Ollakka 2018-06-11 14:54:37 +03:00
  • 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 Teemu Ollakka 2018-06-11 11:48:07 +03:00
  • e18c9d597f * Unit test for idle client BF abort. * Fixes to seqno conversion between provider and provider library. * Server context applying side fixes. Teemu Ollakka 2018-06-10 19:27:09 +03:00
  • 2619615e02 Fixed problems with server_context unit tests. Teemu Ollakka 2018-06-10 15:31:41 +03:00
  • ca615fcbd8 Provider abstraction code compiles. Teemu Ollakka 2018-06-10 12:46:42 +03:00
  • e74b214c9c Provider type abstraction, partially completed. Teemu Ollakka 2018-06-09 23:28:02 +03:00
  • 2cecb3defe After statement result enum, is_autocommit() virtual method. Teemu Ollakka 2018-06-09 20:01:46 +03:00
  • 15f483ca7f Added wsrep-API/v26 submodule which will point to correct branch of current wsrep-API v26 version. Teemu Ollakka 2018-06-05 12:45:25 +03:00
  • d3cb537d1e Changed project name to wsrep-lib. Teemu Ollakka 2018-06-03 21:56:28 +03:00
  • 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. Teemu Ollakka 2018-06-02 15:55:54 +03:00
  • c73e7c8f5d Do not call before/after command/statement for replaying client. Teemu Ollakka 2018-05-31 17:11:02 +03:00
  • ae93785a57 Allow read-only access to transaction context through client context to enforce use of client context interface for manipulating transaction context state. Teemu Ollakka 2018-05-31 16:55:57 +03:00
  • 2f46758064 Fixed after_statement() call to replay if the state was changed to s_must_replay in rollback() called from after_statement(). Teemu Ollakka 2018-05-31 10:59:15 +03:00
  • 646a2b328e Added TOI client mode, replced string with const char* in debug calls. Teemu Ollakka 2018-05-21 16:42:40 +03:00
  • 90f6eb1ecf Scripts for benchmarking providers, dbms sim fast exit option. Teemu Ollakka 2018-05-09 12:23:44 +03:00