Skip to content

Commit 0493ba7

Browse files
committed
Do not swallow interrupted exception
This was just a silly oops, this commit fixes the swallowing of an interrupted exception in the file-based unicast hosts provider.
1 parent 2456768 commit 0493ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/discovery-file/src/main/java/org/elasticsearch/discovery/file/FileBasedUnicastHostsProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public List<DiscoveryNode> buildDynamicNodes() {
106106
() -> UNICAST_HOST_PREFIX + nodeIdGenerator.incrementAndGet() + "#",
107107
resolveTimeout));
108108
} catch (InterruptedException e) {
109-
109+
throw new RuntimeException(e);
110110
}
111111

112112
logger.debug("[discovery-file] Using dynamic discovery nodes {}", discoNodes);

0 commit comments

Comments
 (0)