abstractdog commented on code in PR #407: URL: https://github.com/apache/tez/pull/407#discussion_r2079105663
########## 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: how big is this number? is maxMemory() different in JDK17? please also put a code comment here, without it, it's just a hack without explanation :D -- 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