Skip to content

Commit 263c049

Browse files
committed
TEZ-4667: Correct the test case testInMemAllocationWithJvmMaxMemory
1 parent 1c8af3e commit 263c049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tez-runtime-library/src/test/java/org/apache/tez/runtime/library/common/shuffle/impl/TestSimpleFetchedInputAllocator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public void testInMemAllocationWithJvmMaxMemory() throws IOException {
9696
File localDirs = new File(System.getProperty("test.build.data", "/tmp"), this.getClass().getName());
9797
Configuration conf = new Configuration();
9898

99-
long jvmMax = Runtime.getRuntime().maxMemory();
99+
long jvmMax = 1073741824L;
100100
LOG.info("jvmMax: " + jvmMax);
101101

102102
float bufferPercent = 0.1f;
@@ -111,7 +111,7 @@ public void testInMemAllocationWithJvmMaxMemory() throws IOException {
111111
"srcName", UUID.randomUUID().toString(), 123, conf,
112112
jvmMax, inMemThreshold);
113113

114-
long requestSize = (long) (0.4f * inMemThreshold) + 100L;
114+
long requestSize = inMemThreshold + 100L;
115115
long compressedSize = 1L;
116116
LOG.info("RequestSize: " + requestSize);
117117

0 commit comments

Comments
 (0)