chaoyli commented on a change in pull request #628: Fix bug in rollback txn case
URL: https://github.com/apache/incubator-doris/pull/628#discussion_r256385690
 
 

 ##########
 File path: be/src/olap/txn_manager.cpp
 ##########
 @@ -263,6 +266,10 @@ OLAPStatus TxnManager::publish_txn(OlapMeta* meta, 
TPartitionId partition_id, TT
     }
 }
 
+// txn could be rollbacked if it does not have related rowset
+// if the txn has related rowset then could not rollback it, because it 
+// may be committed in another thread and our current thread meets erros when 
writing to data file
+// be has to wait for fe call clear txn api
 
 Review comment:
   In what scenario, one thread want to rollback and another thread commit it?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to