From 0f2b875df9debc7621dd072d8e405f47508e4b81 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Wed, 19 Oct 2011 23:12:01 +0200 Subject: [PATCH] better failure message when failing to get a node lock --- .../src/main/java/org/elasticsearch/env/NodeEnvironment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/env/NodeEnvironment.java b/modules/elasticsearch/src/main/java/org/elasticsearch/env/NodeEnvironment.java index 60a8be3a880..81cdc4657c6 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/env/NodeEnvironment.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/env/NodeEnvironment.java @@ -93,7 +93,7 @@ public class NodeEnvironment extends AbstractComponent { } } catch (IOException e) { logger.trace("failed to obtain node lock on {}", e, dir.getAbsolutePath()); - lastException = e; + lastException = new IOException("failed to obtain lock on " + dir.getAbsolutePath(), e); // release all the ones that were obtained up until now for (int i = 0; i < locks.length; i++) { if (locks[i] != null) {