mongo360 opened a new pull request, #37916:
URL: https://github.com/apache/doris/pull/37916

   ## Proposed changes
   
   ## Proposed changes
   
   Problem:
   
   The return status is indistinguishable for _stream_load_2pc when we use it 
to _abort_ or _commit_ the transaction pre-commited before; When we abort a 
transaction that is aborted or committed,the return  status is same as 
**ANALYSIS_ERROR**。
   1. committed transaction
   ```
   { "status": "ANALYSIS_ERROR", "msg": "TStatus: errCode = 2, detailMessage = 
transaction [1] is already aborted. abort reason: User Abort" }
   ```
   2. aborted transation
   ```
   { "status": "ANALYSIS_ERROR", "msg": "TStatus: errCode = 2, detailMessage =  
transaction [1] is already visible, not pre-committed." }
   ```
   But the repeat commit is a normal operation in FlinkDorisConnector and 
SparkDorisConnector,when the task restore from one checkpoint;In this scene it 
need to differentiate the result from _msg_ string。
   
   Improve:
   Add special status for the result that not affect the logic of the 
process;FlinkDorisConnector can check the result with status for normal result。
   
   
   


-- 
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-unsubscr...@doris.apache.org

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


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

Reply via email to