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


##########
tez-ext-service-tests/src/test/java/org/apache/tez/tests/ExternalTezServiceTestHelper.java:
##########
@@ -78,10 +78,17 @@ public ExternalTezServiceTestHelper(String testRootDir) 
throws
     for (Map.Entry<String, String> entry : tezCluster.getConfig()) {
       clusterConf.set(entry.getKey(), entry.getValue());
     }
+
     long jvmMax = Runtime.getRuntime().maxMemory();
+    long availableMemory;
+    if ((jvmMax * 0.5d) >= Integer.MAX_VALUE) {

Review Comment:
    maxMemory() is behaving differently with jdk17 compare to old jdk8.
   The number is: 8589934592 bigger than Integer.MAX_VALUE(2147483647) which is 
causing Number format exceptions while converting long to int. 
   I will add comment to the code lines. Thank you !



-- 
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: issues-unsubscr...@tez.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to