Skip to content

Fix unbound-control stdin commands for multi-process Unbounds#1069

Merged
gthess merged 3 commits intomasterfrom
bugfix/unbound-control-multi-process
May 17, 2024
Merged

Fix unbound-control stdin commands for multi-process Unbounds#1069
gthess merged 3 commits intomasterfrom
bugfix/unbound-control-multi-process

Conversation

@gthess
Copy link
Member

@gthess gthess commented May 16, 2024

This PR distributes commands that read stdin properly to other processes. These are local_zones_remove, local_zones, local_datas_remove, local_datas, view_local_datas_remove and view_local_datas.
testdata/09-unbound-control.tdir is updated to check the correctness on different scenarios. It now does it one line at a time but it can be updated to put several lines in the same distribute batch.

dump_cache and load_cache are no longer supported in multi-process operation because of confusing results in that scenario.

testdata/remote-threaded.tdir is removed as it is obsoleted by the updated testdata/09-unbound-control.tdir.

gthess added 2 commits May 15, 2024 22:46
  operation (local_zones_remove, local_zones, local_datas_remove,
  local_datas, view_local_datas_remove, view_local_datas). They will
  be properly distributed to all processes. dump_cache and load_cache
  are no longer supported in multi-process operation.
  now checks both single and multi process/thread operation.
@gthess gthess requested a review from wcawijngaards May 16, 2024 07:57
@gthess gthess self-assigned this May 16, 2024
Copy link
Member

@wcawijngaards wcawijngaards left a comment

Choose a reason for hiding this comment

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

This looks like it would fix consistency for config changes, by distributing the content to the worker processes. The code looks fine.

Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
@gthess gthess merged commit 7f184c8 into master May 17, 2024
@gthess gthess deleted the bugfix/unbound-control-multi-process branch May 17, 2024 08:25
gthess added a commit that referenced this pull request May 17, 2024
- Merge #1069: Fix unbound-control stdin commands for multi-process
  Unbounds.
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.

2 participants