You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/20 05:39:09 UTC
[I] [Improvement] Dooubkle unlock should thow an exception in TreeLock.java [gravitino]
justinmclean opened a new issue, #8200:
URL: https://github.com/apache/gravitino/issues/8200
### What would you like to be improved?
In core/src/main/java/org/apache/gravitino/lock/TreeLock.java calling unlock with no loge should thow an exception.
Here a unit test to help:
```
@Test
void testDoubleUnlockThrows() {
lock.lock(LockType.READ);
lock.unlock();
assertThrows(IllegalStateException.class, () -> lock.unlock());
}
```
### How should we improve?
Fix and add tests.
--
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: commits-unsubscribe@gravitino.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Double unlock should thow an exception in TreeLock.java [gravitino]
Posted by "jerryshao (via GitHub)" <gi...@apache.org>.
jerryshao closed issue #8200: [Improvement] Double unlock should thow an exception in TreeLock.java
URL: https://github.com/apache/gravitino/issues/8200
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Double unlock should thow an exception in TreeLock.java [gravitino]
Posted by "keepConcentration (via GitHub)" <gi...@apache.org>.
keepConcentration commented on issue #8200:
URL: https://github.com/apache/gravitino/issues/8200#issuecomment-3208555161
@justinmclean
Hi, can I take this issue?
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Improvement] Double unlock should thow an exception in TreeLock.java [gravitino]
Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8200:
URL: https://github.com/apache/gravitino/issues/8200#issuecomment-3208560879
All yours.
--
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: commits-unsubscribe@gravitino.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org