zeek/testing/btest/supervisor
Arne Welzel 92565d4739 Supervisor: Handle EAGAIN error on stem pipe
util::safe_write() calls abort() in case of EAGAIN errors. This is
easily observed when starting clusters with 32 workers or more.

Add a custom write_message() function handling EAGAIN by retrying
after a small sleep. It's not clear a more complicated poll() would be
much better: The pipe might be ready for writing, but then our message
might not actually fit in, resulting in another EAGAIN error. And even
poll() would introduce blocking/sleeping code.

Take some precautions against the stem and the supervisor dead-locking
when both pipes are full by draining the other end on EAGAIN errors.

Closes #3043
2023-10-25 12:53:37 +02:00
..
config-bare-mode.zeek Spelling testing 2022-11-16 20:05:03 -05:00
config-cluster-leftover-log-archival.zeek Add Log::rotation_format_func and Log::default_rotation_dir options 2020-07-07 18:42:37 -07:00
config-cluster-log-archival.zeek Add Log::rotation_format_func and Log::default_rotation_dir options 2020-07-07 18:42:37 -07:00
config-cluster-multi-logger.zeek cluster/supervisor: Multi-logger awareness 2023-05-05 12:27:25 +02:00
config-cluster-pcap.zeek Revert "Merge remote-tracking branch 'origin/topic/vern/at-if-analyze'" 2023-05-31 09:20:33 +02:00
config-cluster.zeek Simplify btests using cluster_started event. 2023-04-26 20:00:44 +02:00
config-directory.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
config-env.zeek Add support for setting environment variables via supervisor 2021-07-08 13:12:53 -07:00
config-output-redirect.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
config-scripts.zeek Remove Supervisor::NodeConfig (6.1 deprecation) 2023-06-14 10:07:22 -07:00
create-interface-pcap-file-error.zeek Add pcap_file option to supervised nodes. 2023-03-21 16:18:02 +01:00
create.zeek updates to test suite tests for compatibility with upcoming ZAM functionality 2021-06-01 09:25:30 -07:00
destroy.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
large-cluster.zeek Supervisor: Handle EAGAIN error on stem pipe 2023-10-25 12:53:37 +02:00
node_status.zeek Add Supervisor::node_status notification event 2022-05-30 21:36:35 -07:00
output-redirect-hook.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
output-redirect.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
restart.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
revive-leaf.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
revive-stem.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00
status.zeek Improve btest timeouts 2020-02-06 17:50:17 -08:00