Skip to content

Add correct kafka recovery functionality - #12

Merged
maldwg merged 6 commits into
mainfrom
hotfix/correct-kafka-retry
Jul 21, 2026
Merged

maldwg merged 6 commits into
mainfrom
hotfix/correct-kafka-retry

Conversation

@maldwg

@maldwg maldwg commented Jul 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ff49d11c79

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if (!kafka_was_reachable) {
spdlog::info("Kafka brokers are reachable again while Zeek network analysis is running.");
kafka_was_reachable = true;
bool deployed = deployZeekctl();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Unblock signals before recovery deploy

In the Kafka-recovery path, this deployZeekctl() runs on the monitor thread, which was created after SIGINT/SIGTERM were blocked for sigwait; PosixCommandExecutor::execute then fork/execs without resetting the signal mask. When this path starts fresh Zeek workers after an outage, those processes can inherit blocked shutdown signals unlike the initial deploy, so a later Docker stop/zeekctl stop may not terminate them cleanly. Reset or unblock the signal mask before spawning zeekctl from this thread.

Useful? React with 👍 / 👎.

@maldwg
maldwg merged commit 16239bc into main Jul 21, 2026
7 checks passed
@maldwg
maldwg deleted the hotfix/correct-kafka-retry branch July 21, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant