Return-Path: X-Original-To: apmail-incubator-accumulo-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-accumulo-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DFE8291FB for ; Thu, 16 Feb 2012 15:09:45 +0000 (UTC) Received: (qmail 73563 invoked by uid 500); 16 Feb 2012 15:09:45 -0000 Delivered-To: apmail-incubator-accumulo-commits-archive@incubator.apache.org Received: (qmail 73522 invoked by uid 500); 16 Feb 2012 15:09:45 -0000 Mailing-List: contact accumulo-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: accumulo-dev@incubator.apache.org Delivered-To: mailing list accumulo-commits@incubator.apache.org Received: (qmail 73509 invoked by uid 99); 16 Feb 2012 15:09:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 15:09:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Feb 2012 15:09:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 7DF2B238897D; Thu, 16 Feb 2012 15:09:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1245015 - /incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java Date: Thu, 16 Feb 2012 15:09:22 -0000 To: accumulo-commits@incubator.apache.org From: ecn@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120216150922.7DF2B238897D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ecn Date: Thu Feb 16 15:09:22 2012 New Revision: 1245015 URL: http://svn.apache.org/viewvc?rev=1245015&view=rev Log: ACCUMULO-393: move set computation outside loop, added debug message Modified: incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java Modified: incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java URL: http://svn.apache.org/viewvc/incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java?rev=1245015&r1=1245014&r2=1245015&view=diff ============================================================================== --- incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java (original) +++ incubator/accumulo/branches/1.4/src/server/src/main/java/org/apache/accumulo/server/master/Master.java Thu Feb 16 15:09:22 2012 @@ -2005,11 +2005,14 @@ public class Master implements LiveTServ tserverSet.remove(server); } } - synchronized (badServers) { - Set deadBadServers = new HashSet(badServers.keySet()); - deadBadServers.removeAll(currentServers); - badServers.entrySet().removeAll(deadBadServers); + } + synchronized (badServers) { + Set deadBadServers = new HashSet(badServers.keySet()); + deadBadServers.removeAll(currentServers); + if (!badServers.isEmpty()) { + log.debug("Forgetting about bad servers: " + badServers); } + badServers.entrySet().removeAll(deadBadServers); } log.debug(String.format("Finished gathering information from %d servers in %.2f seconds", result.size(), (System.currentTimeMillis() - start) / 1000.)); return result;