Skip to content

Commit

Permalink
improve shardLock fail assertion message
Browse files Browse the repository at this point in the history
Signed-off-by: Hailong Cui <[email protected]>
  • Loading branch information
Hailong-am committed May 21, 2024
1 parent c76392f commit 0aed43a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2770,8 +2770,7 @@ public synchronized void assertAfterTest() throws Exception {
try {
env.shardLock(id, "InternalTestCluster assert after test", TimeUnit.SECONDS.toMillis(5)).close();
} catch (ShardLockObtainFailedException ex) {
logger.error("Obtained shard lock failed", ex);
fail("Shard " + id + " is still locked after 5 sec waiting");
fail("Shard " + id + " is still locked after 5 sec waiting with exception " + ex.getMessage());
}
}
}
Expand Down

0 comments on commit 0aed43a

Please sign in to comment.