FrankChen021 opened a new pull request, #19855: URL: https://github.com/apache/druid/pull/19855
## Summary - add the `sys.stack_trace` system table for collecting live Java platform-thread snapshots from explicitly selected Druid nodes - add the `/status/stack` endpoint and a stateless collector with jstack-style formatting, CPU timing, lock, and deadlock information - support the `maxStackTraceFrameDepth` SQL query context and HTTP parameter with a default of 100 and a valid range of 10–1000 - document the table, endpoint, conversion behavior, and virtual-thread limitation ## Motivation Expose targeted runtime diagnostics through SQL so operators and diagnostic agents can investigate thread contention, deadlocks, and CPU-heavy threads without collecting stack traces from an entire cluster unintentionally. ## Validation - `StatusResourceTest` (10 tests) - `SystemSchemaTest` (28 tests) - `SystemStackTraceTableTest` embedded HTTP/SQL coverage (7 tests) - `CalciteQueryTest#testInformationSchemaTables` - Checkstyle for `server`, `sql`, and `embedded-tests` - documentation spellcheck - `git diff --check` -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
