hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject [1/2] hbase git commit: HBASE-19445 PerformanceEvaluation NPE processing split policy option
Date Wed, 06 Dec 2017 22:11:45 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-2 52ffa68f8 -> 57df73ac6
  refs/heads/master 00750fe79 -> 3e7b90ac6


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/57df73ac
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/57df73ac
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/57df73ac

Branch: refs/heads/branch-2
Commit: 57df73ac6819e0e9fde89027a07fe09735eec675
Parents: 52ffa68
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:40 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/57df73ac/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