You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ed3a2df
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(store): drain TTL native resources on shutdown (#3304)
Shutdown waits for TTL workers and their native cleanup after RPC/Scan ownership drains. TTL closes its scan and borrowed session lease in order, attempts both releases, and retains cleanup failures as shutdown blockers.
The distribution stop script reports timeouts explicitly. Native reference-count, close-failure, active-read and shutdown regressions ship here. A real nonempty TTL scan with interrupted Spring close verifies that the database stays alive while the reader is blocked, then checks iterator/session drain before bean destruction.
Copy file name to clipboardExpand all lines: hugegraph-store/hg-store-node/src/main/java/org/apache/hugegraph/store/node/listener/ContextClosedListener.java
+15-8Lines changed: 15 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -69,13 +69,9 @@ public void onApplicationEvent(ContextClosedEvent event) {
69
69
}
70
70
this.grpcServers.forEach(Server::shutdownNow);
71
71
if (cleaner != null) {
72
-
// TTL failure ownership and worker drain are added by the native shutdown PR.
73
-
if (cleaner.getExecutor() != null) {
74
-
cleaner.getExecutor().shutdownNow();
75
-
}
76
-
if (cleaner.getScheduler() != null) {
77
-
cleaner.getScheduler().shutdownNow();
78
-
}
72
+
// The scheduler can create the worker pool while a job is starting.
0 commit comments