Skip to content

Commit

Permalink
Add log for ShardLockException
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 13, 2024
1 parent cd55bca commit c6960c2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2770,6 +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");
}
}
Expand Down

0 comments on commit c6960c2

Please sign in to comment.