Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0EFD9200D4C for ; Thu, 30 Nov 2017 20:50:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0D872160C01; Thu, 30 Nov 2017 19:50:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7AA4F160BF6 for ; Thu, 30 Nov 2017 20:50:49 +0100 (CET) Received: (qmail 44378 invoked by uid 500); 30 Nov 2017 19:50:48 -0000 Mailing-List: contact commits-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list commits@hbase.apache.org Received: (qmail 44369 invoked by uid 99); 30 Nov 2017 19:50:48 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Nov 2017 19:50:48 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 85C21DFBD7; Thu, 30 Nov 2017 19:50:48 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: chia7712@apache.org To: commits@hbase.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: hbase git commit: HBASE-19350 TestMetaWithReplicas is flaky Date: Thu, 30 Nov 2017 19:50:48 +0000 (UTC) archived-at: Thu, 30 Nov 2017 19:50:50 -0000 Repository: hbase Updated Branches: refs/heads/branch-1 1e0067304 -> ac7fd29f7 HBASE-19350 TestMetaWithReplicas is flaky Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/ac7fd29f Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/ac7fd29f Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/ac7fd29f Branch: refs/heads/branch-1 Commit: ac7fd29f7e38f8c83ac14e052c7a4d81dd748bcd Parents: 1e00673 Author: Chia-Ping Tsai Authored: Fri Dec 1 03:44:46 2017 +0800 Committer: Chia-Ping Tsai Committed: Fri Dec 1 03:44:46 2017 +0800 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/ClusterStatus.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/ac7fd29f/hbase-client/src/main/java/org/apache/hadoop/hbase/ClusterStatus.java ---------------------------------------------------------------------- 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 2eb1162..e2f10d3 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 @@ -303,7 +303,10 @@ public class ClusterStatus extends VersionedWritable { @InterfaceAudience.Private public Set getRegionsInTransition() { - return this.intransition; + if (intransition == null) { + return Collections.emptySet(); + } + return Collections.unmodifiableSet(intransition); } public String getClusterId() {