From 9ba0ff03e211554df6b01fd860159cc74bf95026 Mon Sep 17 00:00:00 2001 From: Jonathan Ellis Date: Wed, 19 Jun 2013 16:30:02 -0500 Subject: [PATCH] simplify initClient gossip loop patch by Adrian Nistor and jbellis for CASSANDRA-5662 --- src/java/org/apache/cassandra/service/StorageService.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/cassandra/service/StorageService.java b/src/java/org/apache/cassandra/service/StorageService.java index e73aa2ed89..34ecec80f3 100644 --- a/src/java/org/apache/cassandra/service/StorageService.java +++ b/src/java/org/apache/cassandra/service/StorageService.java @@ -395,16 +395,14 @@ public class StorageService extends NotificationBroadcasterSupport implements IE try { // sleep a while to allow gossip to warm up (the other nodes need to know about this one before they can reply). - boolean isUp = false; - while (!isUp) + outer: + while (true) { Thread.sleep(1000); for (InetAddress address : Gossiper.instance.getLiveMembers()) { if (!Gossiper.instance.isFatClient(address)) - { - isUp = true; - } + break outer; } }