[TEST] throw correct error within assertBusy in TruncateTranslogIT

This commit is contained in:
Lee Hinman 2016-07-27 16:40:49 -06:00
parent dcf42b8d64
commit 9fa33b6d07
1 changed files with 2 additions and 1 deletions

View File

@ -153,7 +153,8 @@ public class TruncateTranslogIT extends ESIntegTestCase {
Lock writeLock = dir.obtainLock(IndexWriter.WRITE_LOCK_NAME)) {
// Great, do nothing, we just wanted to obtain the lock
} catch (LockObtainFailedException lofe) {
throw new ElasticsearchException("Still waiting for lock release at [" + idxLocation + "]");
logger.info("--> failed acquiring lock for {}", idxLocation);
fail("still waiting for lock release at [" + idxLocation + "]");
} catch (IOException ioe) {
fail("Got an IOException: " + ioe);
}