This is an automated email from the ASF dual-hosted git repository.
abstractdog pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tez.git
The following commit(s) were added to refs/heads/master by this push:
new dd010a2c0 TEZ-4667: Correct the test case
testInMemAllocationWithJvmMaxMemory (#445) (Mahesh Raju Somalaraju reviewed by
Laszlo Bodor)
dd010a2c0 is described below
commit dd010a2c03658a31172786e617d822e3177ab6ad
Author: Mahesh Raju Somalaraju <[email protected]>
AuthorDate: Fri Jan 9 14:17:22 2026 +0530
TEZ-4667: Correct the test case testInMemAllocationWithJvmMaxMemory (#445)
(Mahesh Raju Somalaraju reviewed by Laszlo Bodor)
---
.../library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java
b/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java
index a9a78a976..2dd582177 100644
---
a/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java
+++
b/tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java
@@ -96,7 +96,7 @@ public class TestSimpleFetchedInputAllocator {
File localDirs = new File(System.getProperty("test.build.data", "/tmp"),
this.getClass().getName());
Configuration conf = new Configuration();
- long jvmMax = Runtime.getRuntime().maxMemory();
+ long jvmMax = 1073741824L;
LOG.info("jvmMax: " + jvmMax);
float bufferPercent = 0.1f;
@@ -111,7 +111,7 @@ public class TestSimpleFetchedInputAllocator {
"srcName", UUID.randomUUID().toString(), 123, conf,
jvmMax, inMemThreshold);
- long requestSize = (long) (0.4f * inMemThreshold) + 100L;
+ long requestSize = inMemThreshold + 100L;
long compressedSize = 1L;
LOG.info("RequestSize: " + requestSize);