hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [2/2] hbase git commit: HBASE-19445 PerformanceEvaluation NPE processing split policy option
Date Wed, 06 Dec 2017 22:11:46 GMT
HBASE-19445 PerformanceEvaluation NPE processing split policy option


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

Branch: refs/heads/master
Commit: 3e7b90ac6d808c171ea988d8d32ef998146713ac
Parents: 00750fe
Author: Andrew Purtell <apurtell@apache.org>
Authored: Wed Dec 6 14:08:55 2017 -0800
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Dec 6 14:11:41 2017 -0800

----------------------------------------------------------------------
 .../test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3e7b90ac/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
----------------------------------------------------------------------
diff --git a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
index e2d23e5..8255573 100644
--- a/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
+++ b/hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/PerformanceEvaluation.java
@@ -406,7 +406,7 @@ public class PerformanceEvaluation extends Configured implements Tool
{
     if (opts.replicas != DEFAULT_OPTS.replicas) {
       desc.setRegionReplication(opts.replicas);
     }
-    if (opts.splitPolicy != DEFAULT_OPTS.splitPolicy) {
+    if (opts.splitPolicy != null && !opts.splitPolicy.equals(DEFAULT_OPTS.splitPolicy))
{
       desc.setRegionSplitPolicyClassName(opts.splitPolicy);
     }
     return desc;


Mime
View raw message