From a141498428b2f59a56bb096c4e987206c95ec251 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Mon, 21 Jul 2014 21:54:56 +0000 Subject: [PATCH] fix formatting git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1612410 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/solr/cloud/LeaderElector.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java b/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java index 2481e69e32a..a12dfae44b7 100644 --- a/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java +++ b/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java @@ -342,14 +342,14 @@ public class LeaderElector { if (EventType.None.equals(event.getType())) { return; } - if(canceled) { + if (canceled) { log.info("This watcher is not active anymore {}", myNode); try { - zkClient.delete(myNode,-1,true); - }catch (KeeperException.NoNodeException nne) { - //expected . don't do anything - } catch (Exception e) { - log.warn("My watched node still exists and can't remove "+myNode, e); + zkClient.delete(myNode, -1, true); + } catch (KeeperException.NoNodeException nne) { + // expected . don't do anything + } catch (Exception e) { + log.warn("My watched node still exists and can't remove " + myNode, e); } return; }