rpuch commented on code in PR #1559:
URL: https://github.com/apache/ignite-3/pull/1559#discussion_r1084922263
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/mv/AbstractPageMemoryMvPartitionStorage.java:
##########
@@ -1000,16 +1007,18 @@ public void close() {
busyLock.block();
try {
- IgniteUtils.closeAll(getResourcesToClose());
+ IgniteUtils.closeAll(getResourcesToClose(goingToDestroy));
} catch (Exception e) {
throw new StorageException(e);
}
}
/**
* Returns resources that should be closed on {@link #close()}.
+ *
+ * @param goingToDestroy If the closure is in preparation for destruction.
*/
- protected List<AutoCloseable> getResourcesToClose() {
+ protected List<AutoCloseable> getResourcesToClose(boolean goingToDestroy) {
Review Comment:
This comment explains the matter:
https://github.com/apache/ignite-3/pull/1559#discussion_r1083726707
--
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]