yiguolei commented on a change in pull request #334: Modify partition's version
name to what it means
URL: https://github.com/apache/incubator-doris/pull/334#discussion_r235317987
##########
File path:
fe/src/main/java/org/apache/doris/transaction/PublishVersionDaemon.java
##########
@@ -122,15 +122,20 @@ private void publishVersion() {
TabletInvertedIndex tabletInvertedIndex =
Catalog.getCurrentInvertedIndex();
// try to finish the transaction, if failed just retry in next loop
+ long currentTime = System.currentTimeMillis();
for (TransactionState transactionState : readyTransactionStates) {
+ if (transactionState.getPublishVersionTime() - currentTime <
Config.publish_version_interval_millis * 2) {
+ // wait 2 rounds before handling publish result
Review comment:
should be currentTime - publishVersionTime
----------------------------------------------------------------
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]