Skip to content

Add configurable sinks to postmortem WorkerPool and callstack dumps#2169

Merged
SatheeshkumarG15 merged 8 commits into
masterfrom
feature/postmortem-sinks
Jul 14, 2026
Merged

Add configurable sinks to postmortem WorkerPool and callstack dumps#2169
SatheeshkumarG15 merged 8 commits into
masterfrom
feature/postmortem-sinks

Conversation

@SatheeshkumarG15

@SatheeshkumarG15 SatheeshkumarG15 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Introduces PostMortemDataSink enum (FILE/LOG/ALL/DISABLED) to independently control where WorkerPool JSON snapshots and callstack dumps are written on crash. Defaults: wpSink=FILE, csSink=DISABLED.

  • Config.h: add PostMortemDataSink enum, parse helpers, new accessors
  • CMakeLists.txt: add POSTMORTEM_WORKERPOOL_SINK / POSTMORTEM_CALLSTACK_SINK CMake options with compile-time defaults
  • GenericConfig.cmake / WPEFramework.conf.in / params.config: expose new config keys (postmortemworkerpoolsink and postmortemcallstacksink)
  • PluginServer.h: gate DumpCallStack, file write, and syslog output behind runtime sink checks; add DumpReadableMetadata() for human-readable ThunderInternals.txt output

…ck dumps

Introduces PostMortemDataSink enum (FILE/LOG/ALL/DISABLED)
to independently control where WorkerPool JSON snapshots and callstack dumps
are written on crash. Defaults: wpSink=FILE, csSink=DISABLED.

- Config.h: add PostMortemDataSink enum, parse helpers, new accessors
- CMakeLists.txt: add POSTMORTEM_WORKERPOOL_SINK / POSTMORTEM_CALLSTACK_SINK
  CMake options with compile-time defaults
- GenericConfig.cmake / WPEFramework.conf.in / params.config: expose new
  config keys (postmortemworkerpoolsink, postmortemcallstacksink,
  postmortemcallstackdumppath)
- PluginServer.h: gate DumpCallStack, file write, and syslog output behind
  runtime sink checks; add DumpReadableMetadata() for human-readable
  ThunderInternals.txt output
Copilot AI review requested due to automatic review settings July 8, 2026 15:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds configurable “sinks” for postmortem outputs in the Thunder daemon so operators can independently control whether crash-time WorkerPool snapshots and callstack dumps go to files, logs, both, or are disabled.

Changes:

  • Introduces PostMortemDataSink plus config parsing/accessors for postmortemworkerpoolsink, postmortemcallstacksink, and postmortemcallstackdumppath.
  • Adds CMake options to set compile-time defaults for the WorkerPool and callstack sinks.
  • Updates daemon config templates/parameter lists and gates postmortem dump emission based on the selected sinks.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
Source/Thunder/Thunder.conf.in Exposes new postmortem sink/path keys in the generated daemon configuration.
Source/Thunder/PluginServer.h Applies sink-based gating for WorkerPool JSON emission and readable dump output; adds log/file routing logic.
Source/Thunder/params.config Registers the new config keys in the parameter list.
Source/Thunder/GenericConfig.cmake Adds mapping for the new sink/path configuration variables (including callstack dump path).
Source/Thunder/Config.h Adds PostMortemDataSink, parsing helper, JSON fields, and accessors for new config values/defaults.
Source/Thunder/CMakeLists.txt Adds CMake cache options and compile-time defaults for postmortem sink selection.

Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/PluginServer.h
Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/PluginServer.h Outdated
SYSLOG(Logging::Shutdown, (_T("WorkerPool snapshot start\n")));
SYSLOG(Logging::Shutdown, (_T("[%s]\n"), jsonContent.c_str()));
SYSLOG(Logging::Shutdown, (_T("WorkerPool snapshot end\n")));
fflush(stderr);
Copilot AI review requested due to automatic review settings July 9, 2026 05:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/PluginServer.h
Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/Config.h
Copilot AI review requested due to automatic review settings July 9, 2026 06:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated 6 comments.

Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/Config.h
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/PluginServer.h Outdated
Copilot AI review requested due to automatic review settings July 9, 2026 10:59
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown
PR Preview Action v1.1.1-25-g59e77e4
🛫 Deployed preview to https://rdkcentral.github.io/Thunder/pr-preview/pr-2169/
on branch gh-pages at 2026-07-13 07:09 UTC

@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/Thunder/2169/rdkcentral/Thunder

  • Commit: 854b458

Report detail: gist'

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread Source/Thunder/PluginServer.h Outdated
Comment thread Source/Thunder/PluginServer.h Outdated
Copilot AI review requested due to automatic review settings July 9, 2026 11:40
@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## Blackduck scan failure details

Summary: 0 violations, 0 files pending approval, 1 file pending identification.

  • Protex Server Path: /home/blackduck/github/Thunder/2169/rdkcentral/Thunder

  • Commit: 687a210

Report detail: gist'

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Comment thread Source/Thunder/CMakeLists.txt
Comment thread Tests/test_support/CMakeLists.txt
@rdkcmf-jenkins

Copy link
Copy Markdown
Contributor

b'## WARNING: A Blackduck scan failure has been waived

A prior failure has been upvoted

  • Upvote reason: ok

  • Commit: 687a210
    '

Copilot AI review requested due to automatic review settings July 13, 2026 07:08

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Comment thread docs/introduction/config.md
Comment thread Source/Thunder/CMakeLists.txt
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/Config.h Outdated
Comment thread Source/Thunder/PluginServer.h Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 12:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread Source/Thunder/PluginServer.h Outdated
Copilot AI review requested due to automatic review settings July 13, 2026 12:49
@SatheeshkumarG15 SatheeshkumarG15 requested a review from sebaszm July 13, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.

@sebaszm sebaszm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

Comment thread Source/Thunder/CMakeLists.txt
@SatheeshkumarG15 SatheeshkumarG15 merged commit d528f2a into master Jul 14, 2026
99 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants