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/10/24 12:18:05 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #2052: Optimize fe start logic

morningman commented on a change in pull request #2052: Optimize fe start logic
URL: https://github.com/apache/incubator-doris/pull/2052#discussion_r338538988
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/catalog/Catalog.java
 ##########
 @@ -2125,103 +2136,138 @@ private void setCanRead(boolean hasLog, boolean err) {
             }
 
         } else {
-            canRead = true;
+            canRead.set(true);
+            isReady.set(true);
+        }
+    }
+
+    public void notifyNewFETypeTransfer(FrontendNodeType newType) {
+        try {
+            String msg = "notify new FE type transfer: " + newType;
+            LOG.warn(msg);
+            Util.stdoutWithTime(msg);
+            this.typeTransferQueue.put(newType);
+        } catch (InterruptedException e) {
+            LOG.error("failed to put new FE type: {}", newType, e);
 
 Review comment:
   It almost never happen. Perhaps I should exit the FE process.

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