You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2019/12/19 07:22:51 UTC
[hbase] branch branch-2 updated: HBASE-23376 NPE happens while
replica region is moving (#906)
This is an automated email from the ASF dual-hosted git repository.
zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/branch-2 by this push:
new c9ab545 HBASE-23376 NPE happens while replica region is moving (#906)
c9ab545 is described below
commit c9ab545f54ff1b22aaecd50f2c87eaf1a90c14e4
Author: XinSun <dd...@gmail.com>
AuthorDate: Thu Dec 19 15:11:04 2019 +0800
HBASE-23376 NPE happens while replica region is moving (#906)
Signed-off-by: Duo Zhang <zh...@apache.org>
---
.../java/org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.java
index 0e10297..5cdacf0 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/AsyncNonMetaRegionLocator.java
@@ -237,7 +237,7 @@ class AsyncNonMetaRegionLocator {
// which prevents us being added. The upper layer can use this value to complete pending requests.
private RegionLocations addToCache(TableCache tableCache, RegionLocations locs) {
LOG.trace("Try adding {} to cache", locs);
- byte[] startKey = locs.getDefaultRegionLocation().getRegion().getStartKey();
+ byte[] startKey = locs.getRegionLocation().getRegion().getStartKey();
for (;;) {
RegionLocations oldLocs = tableCache.cache.putIfAbsent(startKey, locs);
if (oldLocs == null) {