Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,8 @@
<snappy-java.version>1.1.10.4</snappy-java.version>
<spotless-maven-plugin.version>3.1.0</spotless-maven-plugin.version>
<test.build.data>${project.build.directory}/tmp</test.build.data>
<test.log.dir>${project.build.directory}/logs</test.log.dir>
<wro4j-maven-plugin.version>1.7.9</wro4j-maven-plugin.version>
<test.jvm.args>
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
-Dnet.bytebuddy.experimental=true
</test.jvm.args>

<maven.javadoc.skip>true</maven.javadoc.skip> <!-- enabled only in relevant modules separately -->
</properties>
<scm>
Expand Down Expand Up @@ -959,11 +953,18 @@
<reuseForks>false</reuseForks>
<forkedProcessTimeoutInSeconds>900</forkedProcessTimeoutInSeconds>
<testFailureIgnore>true</testFailureIgnore>
<argLine>-Xmx1024m -XX:+HeapDumpOnOutOfMemoryError</argLine>
<argLine>${test.jvm.args}</argLine>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having 2 argline is a BUG. The test.jvm.args is overwriting the above argLine i.e. Xmx one
Screenshots:
Before:
Image

After:
Image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aggarwal-Raghav : patch itself looks good to me, only a minor concern: now as -Xmx1024m finally applied post-patch, I'm not sure how that behave pre-patch in terms of max heap? the only reason I'm worried about this is that unit tests look to be slower in this run, e.g. tez-dag took 6min, while in other PRs it was 3-4mins consistently

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the default Xmx value was behaving well so far (locally and CI) then we could keep it the same for now. We could revisit the size if/when we encounter memory issues.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed, if pre-patch there was no Xmx applied, we can simply remove it now, no further investigation needed

<argLine>
-XX:+HeapDumpOnOutOfMemoryError
--add-opens=java.base/java.lang=ALL-UNNAMED
--add-opens=java.base/java.util=ALL-UNNAMED
--add-opens=java.base/java.io=ALL-UNNAMED
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 3rd --add-opens java.base/java.io=ALL-UNNAMED equals was missing in <test.jvm.args> added it.

-Dnet.bytebuddy.experimental=true
</argLine>
<environmentVariables>
<JAVA_HOME>${java.home}</JAVA_HOME>
<LOG_DIRS>${test.log.dir}</LOG_DIRS>
<MALLOC_ARENA_MAX>4</MALLOC_ARENA_MAX>
<TEZ_AM_EXTERNAL_ID>test-external-id</TEZ_AM_EXTERNAL_ID>
</environmentVariables>
<systemPropertyVariables>
<test.build.data>${test.build.data}</test.build.data>
Expand Down
12 changes: 0 additions & 12 deletions tez-dag/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
org.apache.tez.dag.app.rm.container.AMContainerImpl</tez.dag.state.classes>
<tez.graphviz.title>Tez</tez.graphviz.title>
<tez.graphviz.output.file>Tez.gv</tez.graphviz.output.file>
<test.log.dir>${project.build.directory}/logs</test.log.dir>
</properties>
<artifactId>tez-dag</artifactId>

Expand Down Expand Up @@ -205,17 +204,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${test.jvm.args}</argLine>
<environmentVariables>
<LOG_DIRS>${test.log.dir}</LOG_DIRS>
<TEZ_AM_EXTERNAL_ID>test-external-id</TEZ_AM_EXTERNAL_ID>
</environmentVariables>
</configuration>
</plugin>
<plugin>
<groupId>com.github.os72</groupId>
<artifactId>protoc-jar-maven-plugin</artifactId>
Expand Down
14 changes: 0 additions & 14 deletions tez-ext-service-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@

<artifactId>tez-ext-service-tests</artifactId>

<properties>
<test.log.dir>${project.build.directory}/logs</test.log.dir>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
Expand Down Expand Up @@ -157,16 +153,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${test.jvm.args}</argLine>
<environmentVariables>
<LOG_DIRS>${test.log.dir}</LOG_DIRS>
</environmentVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.rat</groupId>
<artifactId>apache-rat-plugin</artifactId>
Expand Down
14 changes: 0 additions & 14 deletions tez-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
</parent>
<artifactId>tez-tests</artifactId>

<properties>
<test.log.dir>${project.build.directory}/logs</test.log.dir>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed <test.log.dir> property from child pom's . The ant plugin in child pom is still using it but the appropriate value is propagated from parent pom to child pom.

</properties>

<dependencies>
<dependency>
<groupId>org.apache.tez</groupId>
Expand Down Expand Up @@ -156,16 +152,6 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${test.jvm.args}</argLine>
<environmentVariables>
<LOG_DIRS>${test.log.dir}</LOG_DIRS>
</environmentVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down
Loading