From 52c9f7018da6b04bf69eae00d5483cff412d7462 Mon Sep 17 00:00:00 2001 From: Santanu Sinha Date: Tue, 21 Sep 2021 11:17:00 +0530 Subject: [PATCH] Handled interrupted exception properly --- .../com/flipkart/ranger/core/finder/ServiceRegistryUpdater.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ranger-core/src/main/java/com/flipkart/ranger/core/finder/ServiceRegistryUpdater.java b/ranger-core/src/main/java/com/flipkart/ranger/core/finder/ServiceRegistryUpdater.java index 4c361a1e..3681d0d6 100644 --- a/ranger-core/src/main/java/com/flipkart/ranger/core/finder/ServiceRegistryUpdater.java +++ b/ranger-core/src/main/java/com/flipkart/ranger/core/finder/ServiceRegistryUpdater.java @@ -113,7 +113,7 @@ private Void queryExecutor() { } catch (InterruptedException e) { log.info("Updater thread interrupted"); - Exceptions.illegalState(e); + Thread.currentThread().interrupt(); } catch (Exception e) { log.error("Registry update failed for service: " + serviceRegistry.getService().name(), e);