You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by GitBox <gi...@apache.org> on 2018/11/21 10:56:55 UTC

[GitHub] morningman commented on a change in pull request #334: Modify partition's version name to what it means

morningman 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_r235340868
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/transaction/PublishVersionDaemon.java
 ##########
 @@ -68,8 +68,8 @@ private void publishVersion() {
         // attention here, we publish transaction state to all backends including dead backend, if not publish to dead backend
         // then transaction manager will treat it as success
         List<Long> allBackends = Catalog.getCurrentSystemInfo().getBackendIds(false);
-        if (allBackends == null || allBackends.size() == 0) {
-            LOG.warn("some transaction state need to publish, but no alive backends!!!");
+        if (allBackends.isEmpty()) {
+            LOG.warn("some transaction state need to publish, but no backend exists");
             return;
 
 Review comment:
   allbackends never returns null

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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