abstractdog commented on code in PR #407:
URL: https://github.com/apache/tez/pull/407#discussion_r2068499314
##########
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:
could this be simplified as:
```
long availableMemory = (long) Math.min(jvmMax * 0.5d, Integer.MAX_VALUE);
```
also, what is this for? how is it related to JDK17?
--
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]