justinmclean opened a new issue, #8011:
URL: https://github.com/apache/gravitino/issues/8011
### What would you like to be improved?
In core/src/main/java/org/apache/gravitino/lock/LockManager.java, the
deadlock logging in LockManager attempts to format the entire map instead of
the actual timestamp, leading to an IllegalArgumentException when checking for
long-held locks.
Here's a test to show this:
```
@Test
void testCheckDeadLockDoesNotThrow() {
LockManager lockManager = new LockManager(getConfig());
TreeLockNode node = new TreeLockNode("test-node");
node.addHoldingThreadTimestamp(
Thread.currentThread(),
NameIdentifier.of("test"),
System.currentTimeMillis() - TimeUnit.SECONDS.toMillis(40));
Assertions.assertDoesNotThrow(() -> lockManager.checkDeadLock(node));
}
```
### How should we improve?
just format the timestamp
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]