sashapolo commented on code in PR #1486:
URL: https://github.com/apache/ignite-3/pull/1486#discussion_r1058950247
##########
modules/table/src/main/java/org/apache/ignite/internal/table/TableImpl.java:
##########
@@ -371,6 +371,14 @@ private void awaitIndexes() {
allOf(toWait.toArray(CompletableFuture[]::new)).join();
}
+ /**
+ * Prepares this table for being closed. Currently, this means
cancellation of PK future so that RAFT state machine
+ * does not need to wait for PK to be initialized, which allows to avoid a
deadlock on stop.
+ */
+ public void prepareToClose() {
Review Comment:
I would suggest to call it `beforeClose`
--
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]