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

Change subject: KUDU-2612 p5 (b): add highest_seen_txn_id into 
CoordinatorOpResultPB
......................................................................


Patch Set 3:

(1 comment)

http://gerrit.cloudera.org:8080/#/c/16526/3/src/kudu/transactions/txn_status_manager.cc
File src/kudu/transactions/txn_status_manager.cc:

http://gerrit.cloudera.org:8080/#/c/16526/3/src/kudu/transactions/txn_status_manager.cc@164
PS3, Line 164:   // Always set the 'highest_seen_txn_id' on return.
             :   SCOPED_CLEANUP({
             :     if (highest_seen_txn_id) {
             :       std::lock_guard<simple_spinlock> l(lock_);
             :       *highest_seen_txn_id = highest_txn_id_;
             :     }
             :   });
> Actually, rather than dropping and re-taking locks via this SCOPED_CLEANUP,
I was considering that as the very first approach, but I'd like to have 
'highest_seen_txn_id' even when returning from this method with an error from 
status_tablet_.AddNewTransaction(txn_id, user, ts_error).  In case of 
concurrent activity, highest_txn_id_ might change.



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

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ifcb4d90bc10a5695c3f54229688ccdcaf56011d0
Gerrit-Change-Number: 16526
Gerrit-PatchSet: 3
Gerrit-Owner: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Andrew Wong <[email protected]>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Fri, 02 Oct 2020 18:49:36 +0000
Gerrit-HasComments: Yes

Reply via email to