From 2bda22a64e1cf612bd37b57b1fef1bdcb478df21 Mon Sep 17 00:00:00 2001 From: Chia-Ping Tsai Date: Fri, 1 Dec 2017 03:39:44 +0800 Subject: [PATCH] HBASE-19350 TestMetaWithReplicas is flaky --- .../src/main/java/org/apache/hadoop/hbase/ClusterStatus.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java index 351b0c8305d..9c3cc73ea9c 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java @@ -296,7 +296,10 @@ public class ClusterStatus { @InterfaceAudience.Private public List getRegionsInTransition() { - return this.intransition; + if (intransition == null) { + return Collections.emptyList(); + } + return Collections.unmodifiableList(intransition); } public String getClusterId() {