Skip to content

Log live local thread pools at GlobalThreadPool shutdown - #105905

Merged
alexey-milovidov merged 12 commits into
ClickHouse:masterfrom
groeneai:groeneai/diagnose-hung-check-leaked-threadpool
Jul 2, 2026
Merged

alexey-milovidov merged 12 commits into
ClickHouse:masterfrom
groeneai:groeneai/diagnose-hung-check-leaked-threadpool

Conversation

@groeneai

@groeneai groeneai commented May 27, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a one-line diagnostic to GlobalThreadPool::shutdown that lists every live ThreadPoolImpl<ThreadFromGlobalPool*> instance, keyed by the subsystem's CurrentMetrics name. Targets the chronic stress-test "Hung check failed, possible deadlock found" / "Possible deadlock on shutdown" family on master.

Why: gdb.log from a hung stress run shows the main thread blocked inside GlobalThreadPool::shutdown -> ThreadPoolImpl<std::thread>::finalize joining an std::thread whose body is an inner pool's worker parked on the local pool's new_job_or_shutdown cv. That cv never fires because the local pool's shutdown flag is still false (its owner leaked it). The artifacts give us anonymous "ThreadPool" frames only, with no way to attribute the leak to a subsystem.

How it works:

  • The constructor of ThreadPoolImpl registers this in a leaked singleton registry, keyed by CurrentMetrics::getName(metric_threads) (a stable, subsystem-specific identifier such as BackgroundFetchesPoolTask). Only the ThreadFromGlobalPool* instantiations are registered, not ThreadPoolImpl<std::thread> (which IS the GlobalThreadPool).
  • finalize unregisters at the very end, AFTER the join loop. A hung finalize therefore leaves the entry in the map, which is exactly the signal we want.
  • GlobalThreadPool::shutdown reads the registry and emits one LOG_INFO line BEFORE calling finalize, so the message is captured in the server log even when the join hangs forever.

The registry is intentionally leaked because function-local statics inside SharedThreadPools.cpp (getIOThreadPool, getBackupsIOThreadPool, ...) wrap ThreadPool instances whose destructors call unregisterLocalThreadPool after this registry would otherwise be destroyed.

Expected log lines:

  • Clean shutdown: shutdown(): live local ThreadPoolImpl instances at shutdown: [(none)]
  • Leak: shutdown(): live local ThreadPoolImpl instances at shutdown: [BackgroundFetchesPoolTaskx1] (or similar). Once CI captures the leaker subsystem names, follow-up PRs can land per-subsystem lifetime fixes.

This is intentionally diagnostic-only with no behavior change. The cost at shutdown is one snapshot of a small std::unordered_map under a single mutex.

Pre-PR validation:

  • Compilation: rebuilt src/Common/ThreadPool.cpp and linked libclickhouse_common_io.a cleanly with clang-21 Debug.
  • Competing PRs: searched gh pr for "GlobalThreadPool shutdown" / "ThreadPool diagnostic" / "leaked ThreadPool" / "hung_check ThreadPool" on 2026-05-27; no overlap.
  • Local repro: not applicable. This is an instrument, not a fix. The bug it is meant to surface is a chronic ~8-10/day master flake that only reproduces under sustained stress workloads. Per the established investigation plan, the next step is to ship the instrument and read the leaker names from CI.

Related context: PR #103551 (merged 2026-04-27) preserves hung_check.log content in test_context_raw but the log only shows blocked threads in anonymous ThreadPool::worker. This PR adds the missing subsystem attribution.

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Version info

  • Merged into: 26.7.1.412 (included in 26.7 and later)

Adds a diagnostic that lists every live `ThreadPoolImpl<ThreadFromGlobalPool*>`
instance when `GlobalThreadPool::shutdown` runs. The chronic stress-test
"Hung check failed, possible deadlock found" family is caused by local thread
pools whose owner never destroyed them: their workers stay parked on the local
pool's `new_job_or_shutdown` condition variable, so `GlobalThreadPool::finalize`
blocks forever joining the underlying `std::thread`. Today CI artifacts only
expose anonymous "ThreadPool" frames in gdb.log, which is why this umbrella has
been untriageable.

The instrument keeps a `std::unordered_map` of live local pools keyed by `this`
and named by `CurrentMetrics::getName(metric_threads)`, so the resulting log
line points straight at the subsystem (for example
`BackgroundFetchesPoolTaskx1, MergeTreeBackgroundExecutorThreadsx1`) without
relying on `setThreadName` (which is called after a job is received and is
absent for parked workers).

`finalize` unregisters at the very end of the function so that a hung join
leaves the leaker in the map, which is exactly the signal `shutdown` reads.
The registry is intentionally leaked so it outlives function-local statics like
`getIOThreadPool` whose destructors call `unregisterLocalThreadPool` after the
registry would otherwise be gone.
@groeneai

Copy link
Copy Markdown
Collaborator Author

Pre-PR validation gate self-review (per worker policy; session: cron:clickhouse-ci-task-worker:20260527-004500)

This patch is a diagnostic instrument, not a fix, so a few gate items are reinterpreted accordingly:

a) Deterministic repro? Not applicable to the instrument itself. The bug it is meant to surface (chronic "Hung check failed, possible deadlock found", ~8-10 master hits/day on master sanitizer/serverfuzz stress lanes) is non-deterministic by nature and cannot be reproduced locally in a reasonable time budget. Per the established investigation plan, the next step is to ship the instrument to CI and read leaker subsystem names from the resulting log.

b) Root cause explained? Yes for the umbrella we are diagnosing: from gdb.log on PR #104228 (commit 726ffb1, Stress test (arm_debug)), the main thread is parked inside GlobalThreadPool::shutdown -> ThreadPoolImpl<std::thread>::finalize joining an std::thread whose body is an inner pool's worker parked on the local pool's new_job_or_shutdown cv. The cv never fires because the local pool's shutdown flag is still false (its owner leaked it). What is unknown is WHICH subsystem leaks. The diagnostic answers that question.

c) Fix matches root cause? This PR does not fix the deadlock. It instruments the shutdown path so CI artifacts attribute leaks to a named subsystem (e.g. BackgroundFetchesPoolTaskx1). Follow-up per-subsystem lifetime fixes will land separately once the data is in.

d) Test intent preserved? No existing tests modified.

e) Both directions demonstrated? Reinterpreted as "did the instrument compile and produce the expected log line shape?". Locally rebuilt src/Common/ThreadPool.cpp and re-linked libclickhouse_common_io.a cleanly with clang-21 Debug. The added LOG_INFO uses the standard Poco::Logger::get pattern used throughout ClickHouse and the snapshot function is deterministic for the empty case ("(none)"). Real validation is the first CI run on this PR: the server log on every shutdown should now contain shutdown(): live local ThreadPoolImpl instances at shutdown: [...].

f) Fix is general? Yes within scope. The registry captures every ThreadPoolImpl<ThreadFromGlobalPool*> instantiation, not only one subsystem. ThreadPoolImpl<std::thread> (i.e. GlobalThreadPool itself) is intentionally excluded via if constexpr (!std::is_same_v<Thread, std::thread>). The instrument therefore attributes every present-day local pool subsystem, including ones we have not yet observed in CI failures.

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov @alesapin could you review? This is the diagnostic instrument we discussed across PRs #104228, #100399, #100276, #100377, #101143, #94517, #96844, #97254 for the chronic "Hung check failed, possible deadlock found" umbrella. Once it lands, every future hit on master / stress lanes will name the leaker subsystem in clickhouse-server.log, unblocking per-subsystem lifetime fixes.

@nikitamikhaylov nikitamikhaylov added the can be tested Allows running workflows for external contributors label May 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented May 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [60a49cb]

Summary: ✅


AI Review

Summary

This PR adds best-effort attribution for leaked local ThreadPoolImpl<ThreadFromGlobalPool*> workers by tracking them in a diagnostic registry and logging the snapshot before GlobalThreadPool::shutdown() enters the global join path. I re-checked the current ThreadPool.cpp against the resolved review threads and did not find any remaining correctness, shutdown-order, or exception-safety issues in the live code.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 27, 2026
Comment thread src/Common/ThreadPool.cpp Resolved
…end()`

Test pools (for example `gtest_uniq_exact_parallel_merge.cpp`) construct
`ThreadPool` with `CurrentMetrics::end()` as a placeholder metric. The new
diagnostic registration path passed that placeholder to `CurrentMetrics::getName`,
which indexes `names[event]` without bounds checking; `names` has size `END`,
so the placeholder produced out-of-bounds access at construction.

Guard the registration so it only runs for real metrics. The diagnostic loses
nothing meaningful: tests using the placeholder do not participate in the
production `GlobalThreadPool::shutdown` hang we are instrumenting.

Issue raised by AI Review on ClickHouse#105905
Comment thread src/Common/ThreadPool.cpp Resolved
Address the bot review on PR ClickHouse#105905
(ClickHouse#105905 (comment)):
the previous design registered every `ThreadPoolImpl<ThreadFromGlobalPool*>`
at construction, so long-lived shared pools that `Server.cpp` initializes via
`SharedThreadPools.cpp` function-local statics (`getIOThreadPool`,
`getBackupsIOThreadPool`, `getFetchPartitionThreadPool`,
`getActivePartsLoadingThreadPool`, `getFormatParsingThreadPool`, ...) stayed
in the registry until `GlobalThreadPool::shutdown` even when they owned no
worker threads. That made the diagnostic line in `GlobalThreadPool::shutdown`
noisy on healthy shutdowns and defeated the PR contract of identifying the
leaker subsystem.

Now the registry only counts pools that currently own at least one worker
thread: `addLocalThreadPoolWorker` runs from
`ThreadFromThreadPool::ThreadFromThreadPool` (after `available_threads` is
bumped), and `removeLocalThreadPoolWorker` runs from
`~ThreadFromThreadPool` after `join()`. The per-pool entry stores the metric
name plus a `live_workers` counter; on a 0 -> 1 transition the entry is
created, on a 1 -> 0 transition it is erased.

Side benefits:
- For a leaked pool the owner's `~ThreadPoolImpl` is never called, so
  `threads.clear()` in `finalize()` is never reached and the pool's workers
  never run their destructors. Their entries stay by construction. The
  unregister inside the old `finalize()` is removed; the destructor handles
  it for healthy shutdowns.
- The snapshot reports the total number of worker threads per metric name,
  not just the instance count, so partial leaks are still informative.
- The placeholder guard `metric_threads < CurrentMetrics::end()` from
  commit f88b111 is kept on both add and remove sites, so the
  test pools in `gtest_uniq_exact_parallel_merge.cpp` that pass
  `CurrentMetrics::end()` still skip the registry.

Diagnostic only, no behavior change.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Comment thread src/Common/ThreadPool.cpp Resolved
`addLocalThreadPoolWorker` runs from `ThreadFromThreadPool::ThreadFromThreadPool`
after `thread = Thread(...)` has already started a joinable
`ThreadFromGlobalPoolImpl`. Its previous implementation could throw on
`std::unordered_map::operator[]` bucket growth or `std::string` allocation; an
escaping exception would unwind through `~ThreadFromGlobalPoolImpl`, which calls
`abort()` while `state` is still initialized, terminating the process. The
diagnostic instrument was thus turning a benign allocation failure into a hard
process abort - a new failure mode that did not exist before this PR.

Fix:

1. Make `addLocalThreadPoolWorker` and `removeLocalThreadPoolWorker` `noexcept`
   with a `try/catch(...)` that swallows allocation/lock-acquisition failures.
   The diagnostic snapshot may miss an entry, but the pool itself keeps working
   and the process is no longer at risk of abort.

2. Change `Entry::metric_name` from `std::string` to `std::string_view`.
   `CurrentMetrics::getName` returns a view into the program-lifetime
   `names` array (`src/Common/CurrentMetrics.cpp`), so the view is valid
   for as long as any pool exists. This removes the only string allocation
   from the `add`/`remove` paths, leaving `unordered_map` bucket growth as
   the sole remaining throwable operation (caught and swallowed).

3. Update the snapshot to aggregate over `std::map<std::string_view, size_t>`,
   so the aggregation key is also allocation-free.

Address @clickhouse-gh bot review on PR ClickHouse#105905.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
Comment thread src/Common/ThreadPool.cpp Resolved
Addresses two bot review concerns on PR ClickHouse#105905:

1. `snapshotLocalThreadPools` is called from `GlobalThreadPool::shutdown`
   before `the_instance->finalize()`. If `std::map`/`std::string`
   allocation or `fmt::format_to` throws (e.g. under `MEMORY_LIMIT_EXCEEDED`
   at shutdown), the exception escapes shutdown and `finalize` is skipped,
   leaving background threads un-joined. Marked `noexcept` with internal
   `try/catch` returning `"(unavailable)"` as a fallback string.

2. The `LOG_INFO` call site itself can throw (Poco channel I/O, formatter
   allocation). Wrapped the call site in `try/catch` so the log path
   cannot skip `finalize` either.

Also: rephrase the `catch (...)` annotations in `addLocalThreadPoolWorker`
and `removeLocalThreadPoolWorker` to include the `Ok:` marker recognized
by `ci/jobs/check_style.py::check_catch_all`. The catches are intentional
diagnostic-only swallows already documented by the preceding header
comments; the style check is satisfied by `Ok:` in the catch line.
@groeneai groeneai mentioned this pull request Jun 12, 2026
1 of 19 tasks
Resolve conflict in src/Common/ThreadPool.cpp: keep both the diagnostic
registry's <unordered_map> include and master's new <vector> include.

Master generalized the global-vs-local pool discriminator from
`std::is_same_v<Thread, std::thread>` to `std::is_same_v<Thread, GlobalThreadType>`
(GlobalThreadType is ThreadWithStackSize on macOS, std::thread elsewhere).
Update the two diagnostic registration guards
(addLocalThreadPoolWorker / removeLocalThreadPoolWorker call sites) to use
GlobalThreadType so the global pool is never registered into the local-pool
snapshot on macOS. No-op on Linux where the two types are identical.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Merged current master into the branch to resolve the conflict (commit 6152ef6). The only conflict was in src/Common/ThreadPool.cpp: kept both the diagnostic registry's <unordered_map> include and master's new <vector> include.

One semantic adjustment the merge required: master generalized the global-vs-local pool discriminator from std::is_same_v<Thread, std::thread> to std::is_same_v<Thread, GlobalThreadType> (GlobalThreadType is ThreadWithStackSize on macOS, std::thread elsewhere). I updated the two diagnostic registration guards to use GlobalThreadType so the global pool is never registered into the local-pool snapshot on macOS. No-op on Linux where the two types are identical.

Net diff vs master is unchanged otherwise (only ThreadPool.cpp, +177 lines).

session cron:clickhouse-worker-slot-0:20260614-070600

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this is reasonable.

@alexey-milovidov alexey-milovidov self-assigned this Jun 18, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Jun 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 18, 2026
@alexey-milovidov

Copy link
Copy Markdown
Member

@groeneai, iterate on the logs from Fast Test from the failed merge queue case.

The shutdown diagnostic logged "shutdown(): live local ThreadPoolImpl worker
threads at shutdown: [(none)]" unconditionally. This code runs at the exit of
every ClickHouse binary, including short-lived client tools (clickhouse-benchmark,
clickhouse-local, clickhouse-client), whose default root logger has a console
channel at information level. The line could therefore reach a tool's stderr and
get captured by tests that diff tool output.

This was caught by the merge queue: Fast Test failed on
03636_benchmark_error_messages because the "(none)" line leaked into the captured
clickhouse-benchmark output and broke the reference diff. It is intermittent
(depends on logger-channel/static-destruction timing at process exit), which is
why regular PR CI passed it.

Only emit the line when the snapshot is not "(none)", i.e. when a local pool
still owns worker threads. A healthy shutdown is now silent, so it cannot pollute
any tool's output under any logging configuration. The leaker signal is preserved:
a real leaker yields a non-"(none)" string, and the "(unavailable)" fallback (when
the snapshot itself throws) is also still logged. The noexcept/try-catch
finalize-safety guarantees are unchanged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

The merge-queue Fast Test failure was 03636_benchmark_error_messages: the diagnostic line leaked into the captured clickhouse-benchmark output and broke the reference diff:

@@ -1 +1,2 @@
+shutdown(): live local ThreadPoolImpl worker threads at shutdown: [(none)]
 Loaded 1 queries.

Root cause: GlobalThreadPool::shutdown() logged this LOG_INFO unconditionally. It runs at the exit of every binary, including short-lived client tools whose default root logger has a console (stderr) channel at information level, so on a healthy shutdown the [(none)] line could reach a tool's stderr and get captured by tests that diff tool output. It is intermittent (depends on logger-channel / static-destruction timing at exit), which is why regular PR CI passed it.

Fix (b78d6dd): only emit the line when the snapshot is not (none). A healthy shutdown is now silent, so it can't pollute any tool's output under any logging config. The leaker signal is preserved (a real leaker yields a non-(none) string; the (unavailable) snapshot-threw fallback is still logged), and the noexcept/finalize-safety guarantees are unchanged.

Verified locally: 03636_benchmark_error_messages passes 40/40 with the fix and the line appears 0/50 times in healthy clickhouse-benchmark shutdowns.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI fully finished on head b78d6dd6992a (the merge-queue Fast Test iteration). Triage of every non-green check:

  • Fast test: SUCCESS — the merge-queue Fast Test failure this push addressed (03636_benchmark_error_messages, the unconditional shutdown log line leaking into captured tool output) is resolved. Healthy shutdown is now silent.
  • BuzzHouse (arm_asan_ubsan): FAILURE — benign fuzzer query error (Code: 60 UNKNOWN_TABLE: Table d5.t11 does not exist), not a crash, sanitizer report, or LOGICAL_ERROR. Unrelated to this PR (touches only src/Common/ThreadPool.cpp shutdown diagnostics). BuzzHouse infra flakiness is tracked separately (Web UI: hide ", +Shift to run all" hint for a single query #107817, fix Fix fuzzer status.tsv write aborting on "server_died: unbound variable" #107900 merged). The other three BuzzHouse variants (amd_debug/amd_tsan/amd_msan) passed or hit the generic fuzzer timeout.
  • CH Inc sync / Mergeable Check / PR: FAILURE — aggregator roll-ups reflecting the single BuzzHouse red above; no independent failure.

No PR-caused failures. Nothing here is attributable to the diagnostic change.

zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…end()`

Test pools (for example `gtest_uniq_exact_parallel_merge.cpp`) construct
`ThreadPool` with `CurrentMetrics::end()` as a placeholder metric. The new
diagnostic registration path passed that placeholder to `CurrentMetrics::getName`,
which indexes `names[event]` without bounds checking; `names` has size `END`,
so the placeholder produced out-of-bounds access at construction.

Guard the registration so it only runs for real metrics. The diagnostic loses
nothing meaningful: tests using the placeholder do not participate in the
production `GlobalThreadPool::shutdown` hang we are instrumenting.

Issue raised by AI Review on ClickHouse#105905
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Address the bot review on PR ClickHouse#105905
(ClickHouse#105905 (comment)):
the previous design registered every `ThreadPoolImpl<ThreadFromGlobalPool*>`
at construction, so long-lived shared pools that `Server.cpp` initializes via
`SharedThreadPools.cpp` function-local statics (`getIOThreadPool`,
`getBackupsIOThreadPool`, `getFetchPartitionThreadPool`,
`getActivePartsLoadingThreadPool`, `getFormatParsingThreadPool`, ...) stayed
in the registry until `GlobalThreadPool::shutdown` even when they owned no
worker threads. That made the diagnostic line in `GlobalThreadPool::shutdown`
noisy on healthy shutdowns and defeated the PR contract of identifying the
leaker subsystem.

Now the registry only counts pools that currently own at least one worker
thread: `addLocalThreadPoolWorker` runs from
`ThreadFromThreadPool::ThreadFromThreadPool` (after `available_threads` is
bumped), and `removeLocalThreadPoolWorker` runs from
`~ThreadFromThreadPool` after `join()`. The per-pool entry stores the metric
name plus a `live_workers` counter; on a 0 -> 1 transition the entry is
created, on a 1 -> 0 transition it is erased.

Side benefits:
- For a leaked pool the owner's `~ThreadPoolImpl` is never called, so
  `threads.clear()` in `finalize()` is never reached and the pool's workers
  never run their destructors. Their entries stay by construction. The
  unregister inside the old `finalize()` is removed; the destructor handles
  it for healthy shutdowns.
- The snapshot reports the total number of worker threads per metric name,
  not just the instance count, so partial leaks are still informative.
- The placeholder guard `metric_threads < CurrentMetrics::end()` from
  commit f88b111 is kept on both add and remove sites, so the
  test pools in `gtest_uniq_exact_parallel_merge.cpp` that pass
  `CurrentMetrics::end()` still skip the registry.

Diagnostic only, no behavior change.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
`addLocalThreadPoolWorker` runs from `ThreadFromThreadPool::ThreadFromThreadPool`
after `thread = Thread(...)` has already started a joinable
`ThreadFromGlobalPoolImpl`. Its previous implementation could throw on
`std::unordered_map::operator[]` bucket growth or `std::string` allocation; an
escaping exception would unwind through `~ThreadFromGlobalPoolImpl`, which calls
`abort()` while `state` is still initialized, terminating the process. The
diagnostic instrument was thus turning a benign allocation failure into a hard
process abort - a new failure mode that did not exist before this PR.

Fix:

1. Make `addLocalThreadPoolWorker` and `removeLocalThreadPoolWorker` `noexcept`
   with a `try/catch(...)` that swallows allocation/lock-acquisition failures.
   The diagnostic snapshot may miss an entry, but the pool itself keeps working
   and the process is no longer at risk of abort.

2. Change `Entry::metric_name` from `std::string` to `std::string_view`.
   `CurrentMetrics::getName` returns a view into the program-lifetime
   `names` array (`src/Common/CurrentMetrics.cpp`), so the view is valid
   for as long as any pool exists. This removes the only string allocation
   from the `add`/`remove` paths, leaving `unordered_map` bucket growth as
   the sole remaining throwable operation (caught and swallowed).

3. Update the snapshot to aggregate over `std::map<std::string_view, size_t>`,
   so the aggregation key is also allocation-free.

Address @clickhouse-gh bot review on PR ClickHouse#105905.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
Addresses two bot review concerns on PR ClickHouse#105905:

1. `snapshotLocalThreadPools` is called from `GlobalThreadPool::shutdown`
   before `the_instance->finalize()`. If `std::map`/`std::string`
   allocation or `fmt::format_to` throws (e.g. under `MEMORY_LIMIT_EXCEEDED`
   at shutdown), the exception escapes shutdown and `finalize` is skipped,
   leaving background threads un-joined. Marked `noexcept` with internal
   `try/catch` returning `"(unavailable)"` as a fallback string.

2. The `LOG_INFO` call site itself can throw (Poco channel I/O, formatter
   allocation). Wrapped the call site in `try/catch` so the log path
   cannot skip `finalize` either.

Also: rephrase the `catch (...)` annotations in `addLocalThreadPoolWorker`
and `removeLocalThreadPoolWorker` to include the `Ok:` marker recognized
by `ci/jobs/check_style.py::check_catch_all`. The catches are intentional
diagnostic-only swallows already documented by the preceding header
comments; the style check is satisfied by `Ok:` in the catch line.
zeekay pushed a commit to hanzoai/datastore that referenced this pull request Sep 11, 2026
…hung-check-leaked-threadpool

Log live local thread pools at GlobalThreadPool shutdown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants