maheshrajus commented on code in PR #520:
URL: https://github.com/apache/tez/pull/520#discussion_r3664196030


##########
tez-api/src/main/java/org/apache/tez/dag/api/client/rpc/DAGClientRPCImpl.java:
##########
@@ -280,10 +280,14 @@ boolean createAMProxyIfNeeded() throws IOException, 
TezException,
     }
 
     // YARN-808. Cannot ascertain if AM is ready until we connect to it.
-    // workaround check the default string set by YARN
-    if(appReport.getHost() == null || appReport.getHost().equals("N/A") ||
-        appReport.getRpcPort() == 0){
-      // attempt not running
+    // Workaround: check the default strings/sentinels set by YARN.
+    //   port == 0  : protobuf wire default, AM has not called
+    //                registerApplicationMaster() yet.
+    //   port == -1 : AM container is allocated (state=RUNNING) but the
+    //                RPC listener has not been bound yet.

Review Comment:
   Fixed



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to