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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to