From ad743978ed62cdf18bb3f8d580deb27b9b2195a4 Mon Sep 17 00:00:00 2001 From: Jim Kellerman Date: Sat, 3 Nov 2007 04:00:12 +0000 Subject: [PATCH] HADOOP-2109 Fix another race condition in processing dead servers git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk/src/contrib/hbase@591549 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + src/java/org/apache/hadoop/hbase/HMaster.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index e8b7d44c69b..a3170f4a54f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -20,6 +20,7 @@ Trunk (unreleased changes) HADOOP-2083 TestTableIndex failed in #970 and #956 HADOOP-2109 Fixed race condition in processing server lease timeout. HADOOP-2137 hql.jsp : The character 0x19 is not valid + HADOOP-2109 Fix another race condition in processing dead servers IMPROVEMENTS HADOOP-2401 Add convenience put method that takes writable diff --git a/src/java/org/apache/hadoop/hbase/HMaster.java b/src/java/org/apache/hadoop/hbase/HMaster.java index 9163eeacc48..877379ab56c 100644 --- a/src/java/org/apache/hadoop/hbase/HMaster.java +++ b/src/java/org/apache/hadoop/hbase/HMaster.java @@ -2087,7 +2087,7 @@ HMasterRegionInterface { if (closed.get()) { return true; } - if (!rootScanned || + if (!rootRescanned || numberOfMetaRegions.get() != onlineMetaRegions.size()) { // We can't proceed because not all of the meta regions are online. // We can't block either because that would prevent the meta region @@ -2096,7 +2096,7 @@ HMasterRegionInterface { if (LOG.isDebugEnabled()) { LOG.debug("Requeuing shutdown because rootScanned: " + - rootScanned + ", numberOfMetaRegions: " + + rootRescanned + ", numberOfMetaRegions: " + numberOfMetaRegions.get() + ", onlineMetaRegions.size(): " + onlineMetaRegions.size()); }