Alexey Serbin has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/16818 )

Change subject: [TxnStatusManagerTest] fix replica restart in 
GetTransactionStatus
......................................................................


Patch Set 1:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/16818/1/src/kudu/transactions/txn_status_manager-test.cc
File src/kudu/transactions/txn_status_manager-test.cc:

http://gerrit.cloudera.org:8080/#/c/16818/1/src/kudu/transactions/txn_status_manager-test.cc@474
PS1, Line 474:   {
             :     ASSERT_OK(RestartReplica());
             :     decltype(txn_manager_) txn_manager_reloaded(
             :         new TxnStatusManager(tablet_replica_.get()));
             :     ASSERT_OK(txn_manager_reloaded->LoadFromTablet());
             :     txn_manager_ = std::move(txn_manager_reloaded);
             :   }
> At first, I thought it might be worth encapsulating this in some RestartRep
Right -- I was also thinking about that, and making RestartReplica() to be a 
virtual method.  Since it's more a unit test, I guess current approach is good 
enough for a while.  We can change it in future if we want.



--
To view, visit http://gerrit.cloudera.org:8080/16818
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I62f86cfc686a121a1689e6f3942aa4050406ffe2
Gerrit-Change-Number: 16818
Gerrit-PatchSet: 1
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-Comment-Date: Thu, 03 Dec 2020 20:37:58 +0000
Gerrit-HasComments: Yes

Reply via email to