Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
May 17, 2024

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.

  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.

daemon/remote.c Outdated Show resolved Hide resolved
Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
@gthess gthess merged commit 7f184c8 into master May 17, 2024
1 check passed
@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.

None yet

2 participants