rescue zookeeper failure
@@ -4559,7 +4559,13 @@ HOSTS
# sources, will be removed. Must be called under APPS_LOCK.
def check_stopped_apps
Djinn.log_debug("Checking applications that have been stopped.")
+ begin
zookeeper_versions = ZKInterface.get_versions
+ rescue FailedZooKeeperOperationException => e
+ Djinn.log_warn("Failed to get list of versions in zookeeper. Error: " \
+ "#{e}.message")
+ return
+ end
Djinn.log_info("check_stopped_apps: Versions running: #{zookeeper_versions}")
removed_versions = []
if my_node.is_shadow?
