You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tez.apache.org by hi...@apache.org on 2016/05/17 14:52:04 UTC

tez git commit: TEZ-3258. Jvm Checker does not ignore DisableExplicitGC when checking JVM GC options. (Fengdong Yu via hitesh)

Repository: tez
Updated Branches:
  refs/heads/master b747f109d -> d22389cc2


TEZ-3258. Jvm Checker does not ignore DisableExplicitGC when checking JVM GC options. (Fengdong Yu via hitesh)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/d22389cc
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/d22389cc
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/d22389cc

Branch: refs/heads/master
Commit: d22389cc23175379edd5858d2654282973a2f5dc
Parents: b747f10
Author: Hitesh Shah <hi...@apache.org>
Authored: Tue May 17 07:51:19 2016 -0700
Committer: Hitesh Shah <hi...@apache.org>
Committed: Tue May 17 07:51:19 2016 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                     | 5 ++++-
 .../src/main/java/org/apache/tez/common/JavaOptsChecker.java    | 2 +-
 .../test/java/org/apache/tez/common/TestJavaOptsChecker.java    | 3 +++
 3 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/d22389cc/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index b811142..e20940f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -7,6 +7,7 @@ INCOMPATIBLE CHANGES
 
 ALL CHANGES:
 
+  TEZ-3258. Jvm Checker does not ignore DisableExplicitGC when checking JVM GC options.
   TEZ-3256. [Backport HADOOP-11032] Remove Guava Stopwatch dependency
   TEZ-2342. Reduce bytearray copy with TezEvent Serialization and deserialization
   TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable.
@@ -39,6 +40,7 @@ INCOMPATIBLE CHANGES
 
 ALL CHANGES:
 
+  TEZ-3258. Jvm Checker does not ignore DisableExplicitGC when checking JVM GC options.
   TEZ-3256. [Backport HADOOP-11032] Remove Guava Stopwatch dependency
   TEZ-2342. Reduce bytearray copy with TezEvent Serialization and deserialization
   TEZ-3251. Allow ability to add custom counters to TaskRunner2Callable.
@@ -479,10 +481,11 @@ Release 0.7.2: Unreleased
 INCOMPATIBLE CHANGES
 
 ALL CHANGES:
+  TEZ-3258. Jvm Checker does not ignore DisableExplicitGC when checking JVM GC options.
   TEZ-3256. [Backport HADOOP-11032] Remove Guava Stopwatch dependency
   TEZ-2342. Reduce bytearray copy with TezEvent Serialization and deserialization
 
-Release 0.7.1: Unreleased
+Release 0.7.1: 2016-05-10
 
 INCOMPATIBLE CHANGES
   TEZ-2679. Admin forms of launch env settings

http://git-wip-us.apache.org/repos/asf/tez/blob/d22389cc/tez-api/src/main/java/org/apache/tez/common/JavaOptsChecker.java
----------------------------------------------------------------------
diff --git a/tez-api/src/main/java/org/apache/tez/common/JavaOptsChecker.java b/tez-api/src/main/java/org/apache/tez/common/JavaOptsChecker.java
index 7e7c231..6de402a 100644
--- a/tez-api/src/main/java/org/apache/tez/common/JavaOptsChecker.java
+++ b/tez-api/src/main/java/org/apache/tez/common/JavaOptsChecker.java
@@ -48,7 +48,7 @@ public class JavaOptsChecker {
       }
 
       String opt = matcher.group(3);
-      if (!opt.endsWith("GC")) {
+      if (!opt.matches("Use.+GC")) {
         continue;
       }
 

http://git-wip-us.apache.org/repos/asf/tez/blob/d22389cc/tez-api/src/test/java/org/apache/tez/common/TestJavaOptsChecker.java
----------------------------------------------------------------------
diff --git a/tez-api/src/test/java/org/apache/tez/common/TestJavaOptsChecker.java b/tez-api/src/test/java/org/apache/tez/common/TestJavaOptsChecker.java
index 07eb9b6..7f86e14 100644
--- a/tez-api/src/test/java/org/apache/tez/common/TestJavaOptsChecker.java
+++ b/tez-api/src/test/java/org/apache/tez/common/TestJavaOptsChecker.java
@@ -93,6 +93,9 @@ public class TestJavaOptsChecker {
     String opts = " -XX:+UseParNewGC -XX:+UseConcMarkSweepGC ";
     javaOptsChecker.checkOpts(opts);
 
+    opts += " -XX:+DisableExplicitGC ";
+    javaOptsChecker.checkOpts(opts);
+
     opts += " -XX:-UseG1GC ";
     javaOptsChecker.checkOpts(opts);