We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcf42b8 commit 9fa33b6Copy full SHA for 9fa33b6
core/src/test/java/org/elasticsearch/index/translog/TruncateTranslogIT.java
@@ -153,7 +153,8 @@ public void testCorruptTranslogTruncation() throws Exception {
153
Lock writeLock = dir.obtainLock(IndexWriter.WRITE_LOCK_NAME)) {
154
// Great, do nothing, we just wanted to obtain the lock
155
} catch (LockObtainFailedException lofe) {
156
- throw new ElasticsearchException("Still waiting for lock release at [" + idxLocation + "]");
+ logger.info("--> failed acquiring lock for {}", idxLocation);
157
+ fail("still waiting for lock release at [" + idxLocation + "]");
158
} catch (IOException ioe) {
159
fail("Got an IOException: " + ioe);
160
}
0 commit comments