accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dlmar...@apache.org
Subject [1/2] accumulo git commit: ACCUMULO-4196: Protect against NPE
Date Mon, 18 Apr 2016 15:00:37 GMT
Repository: accumulo
Updated Branches:
  refs/heads/master c43c7be6b -> b4037a637


ACCUMULO-4196: Protect against NPE


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

Branch: refs/heads/master
Commit: 79182991d0da0f7b7836a901cec78b3ea570808c
Parents: e77bdd7
Author: Dave Marion <dlmarion@apache.org>
Authored: Mon Apr 18 10:50:25 2016 -0400
Committer: Dave Marion <dlmarion@apache.org>
Committed: Mon Apr 18 10:50:25 2016 -0400

----------------------------------------------------------------------
 .../server/master/balancer/HostRegexTableLoadBalancer.java        | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/79182991/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
----------------------------------------------------------------------
diff --git a/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
b/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
index 29bc1cf..d19ab82 100644
--- a/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
+++ b/server/base/src/main/java/org/apache/accumulo/server/master/balancer/HostRegexTableLoadBalancer.java
@@ -320,6 +320,9 @@ public class HostRegexTableLoadBalancer extends TableLoadBalancer implements
Con
             }
             try {
               List<TabletStats> outOfBoundsTablets = getOnlineTabletsForTable(e.getKey(),
tid);
+              if (null == outOfBoundsTablets) {
+                continue;
+              }
               Random random = new Random();
               for (TabletStats ts : outOfBoundsTablets) {
                 KeyExtent ke = new KeyExtent(ts.getExtent());


Mime
View raw message