You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/07/19 13:35:35 UTC

[GitHub] [doris] TsukiokaKogane opened a new issue, #11018: [Bug] In finishTransaction afterStateTransform throws an exception causing data inconsistency

TsukiokaKogane opened a new issue, #11018:
URL: https://github.com/apache/doris/issues/11018

   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
   
   
   ### Version
   
   0.14
   
   ### What's Wrong?
   
   During a broker load job, after the txn is COMMITTED, there was something going wrong in BrokerLoadJob.writeProfile() and it threw an exception. And the thrown exception causing the broker load job's txn is COMMITTED in the coordinator FE, but VISIBLE in other FE. 
   The problem is caused by in DatabaseTransactionMgr.finishTransaction(): transactionState.afterStateTransform() threw an exception on coordinator FE. Before that happened, DatabaseTransactionMgr.unprotectUpsertTransactionState() add VISIBLE state log to editLog making other FE mark the txn VISIBLE. However, after the exception happened, the coordinator FE's txn state still remains COMMITTED.
   
   ### What You Expected?
   
   the broker load job txn should be either VISIBLE or otherwise at the same time in all FE.
   
   ### How to Reproduce?
   
   throw an exception in BrokerLoadJob.writeProfile()。
   
   ### Anything Else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[GitHub] [doris] morningman closed issue #11018: [Bug] Unhandled exception may cause data inconsistency

Posted by GitBox <gi...@apache.org>.
morningman closed issue #11018: [Bug] Unhandled exception may cause data inconsistency
URL: https://github.com/apache/doris/issues/11018


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org