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 2019/11/18 03:22:04 UTC

[GitHub] [incubator-doris] kangkaisen opened a new pull request #2222: Publish version immediately after txt commited

kangkaisen opened a new pull request #2222: Publish version immediately after txt commited
URL: https://github.com/apache/incubator-doris/pull/2222
 
 
   The reason for publish version is slow under high concurrent is:
   
   1. publish version is serial,could not concurrent
   2. publish version need hold the `GlobalTransactionMgr writeLock`
   3. publish version schedule interval is too big
   4. handle publish version task result isn't  timely
   
   This PR improve in 2,3,4 point.
   
   
   Remove the db check when publish, because we will check when finish txn.
   ```
               for (TransactionState transactionState : allCommittedTransactionState) {
                   long dbId = transactionState.getDbId();
                   Database db = catalog.getDb(dbId);
                   if (null == db) {
                       transactionState.setTransactionStatus(TransactionStatus.ABORTED);
                       unprotectUpsertTransactionState(transactionState);
                       continue;
                   }
               }
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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