Alexey Serbin has submitted this change and it was merged. (
http://gerrit.cloudera.org:8080/16537 )
Change subject: KUDU-2612 p2 (c): small fix on TxnStatusManager's behavior
......................................................................
KUDU-2612 p2 (c): small fix on TxnStatusManager's behavior
This patch adds more consistency into the TxnStatusManager's behavior
during the time interval between the following events:
* The state of the leader replica of a transaction status tablet
changes from BOOTSTRAPPING to RUNNING (see TabletReplica::Start()
for details).
* TxnStatusManager's runtime structures are populated with the
information loaded from the tablet
(i.e. TxnStatusManager::LoadFromTablet() successfully completes).
Before this patch, relevant methods of the TxnStatusManager class could
behave inconsistently within the mentioned interval. With this patch,
those methods return Status::ServiceUnavailable() and do not exhibit any
inconsistent behavior.
This patch also adds a new test scenario to cover the new behavior.
This is a follow-up to efd8c4f165460b7fa337b8ebd1856b10bc274311.
Change-Id: Ia95f821d87145aff6587c017a425e205bdcb8b2b
Reviewed-on: http://gerrit.cloudera.org:8080/16537
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
---
M src/kudu/integration-tests/ts_tablet_manager-itest.cc
M src/kudu/transactions/txn_status_manager-test.cc
M src/kudu/transactions/txn_status_manager.cc
M src/kudu/transactions/txn_status_manager.h
4 files changed, 139 insertions(+), 12 deletions(-)
Approvals:
Kudu Jenkins: Verified
Alexey Serbin: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/16537
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ia95f821d87145aff6587c017a425e205bdcb8b2b
Gerrit-Change-Number: 16537
Gerrit-PatchSet: 7
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Hao Hao <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)