yuqi1129 commented on code in PR #7687:
URL: https://github.com/apache/gravitino/pull/7687#discussion_r2204902199
##########
core/src/test/java/org/apache/gravitino/storage/memory/TestMemoryEntityStore.java:
##########
@@ -166,6 +174,20 @@ public <R, E extends Exception> R
executeInTransaction(Executable<R, E> executab
public void close() throws IOException {
entityMap.clear();
}
+
+ public Map<NameIdentifier, Entity> createSnapshot() {
+ try {
+ lock.lock();
Review Comment:
L159 and here should be moved out of try block.
--
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]