From f4e843c8dcd42992231554883d6097201f08a12a Mon Sep 17 00:00:00 2001 From: Eric Tschetter Date: Sun, 3 Feb 2013 11:02:38 -0600 Subject: [PATCH] 1) Make BasePhoneBook not quite so zealous about throwing exceptions when things didn't line up exactly as it thought they should. --- .../src/main/java/com/metamx/phonebook/StoppedPhoneBook.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/com/metamx/phonebook/StoppedPhoneBook.java b/client/src/main/java/com/metamx/phonebook/StoppedPhoneBook.java index 907ee186b06..99abd2964cd 100644 --- a/client/src/main/java/com/metamx/phonebook/StoppedPhoneBook.java +++ b/client/src/main/java/com/metamx/phonebook/StoppedPhoneBook.java @@ -112,7 +112,8 @@ class StoppedPhoneBook implements PhoneBook } if (! serviceAnnouncements.containsKey(nodeName)) { - throw new IAE("Cannot unannounce node[%s] on service[%s]", nodeName, serviceName); + log.warn("Cannot unannounce[%s]: it doesn't exist for service[%s]", nodeName, serviceName); + return; } serviceAnnouncements.remove(nodeName);