-
Notifications
You must be signed in to change notification settings - Fork 176
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: zenoh_session_multicast
test
#1004
fix: zenoh_session_multicast
test
#1004
Conversation
In the above repeated tests, an unexpectedly slow run is caught. https://github.com/eclipse-zenoh/zenoh/actions/runs/8921424650/job/24501502386?pr=1004#step:7:113 |
3dff7a4
to
1b152a7
Compare
As the timeout of nextest is disabled, we found that the |
091f568
to
45e07fd
Compare
Two issues have been identified:
2024-05-06T04:23:29.255530Z TRACE rx-0 ThreadId(10) zenoh_link_udp::multicast: Read error on UDP link 192.168.68.114:55606 => 224.0.0.1:17448: A Tokio 1.x context was found, but it is being shutdown. at io/zenoh-links/zenoh-link-udp/src/multicast.rs:97.
2024-05-06T04:23:29.255557Z DEBUG rx-0 ThreadId(10) zenoh_transport::multicast::link: Read error on UDP link 192.168.68.114:55606 => 224.0.0.1:17448: A Tokio 1.x context was found, but it is being shutdown. at io/zenoh-links/zenoh-link-udp/src/multicast.rs:97. And then the error of "thread rx-0 panicked at ... The hashmap should contain net after initialization..." may occur. It's due to spawning another termination task after the global
( To reproduce: export RUST_LOG="zenoh=trace"
cargo nextest run -p zenoh --test session -E "test(=zenoh_session_multicast)" -F unstable --no-capture |
Regarding the first issue, the removal of atexit callback is proposed after the discussion. The reasons are listed below,
thread '<unnamed>' panicked at 'use of std::thread::current() is not possible after the thread's local data has been destroyed', library/std/src/thread/mod.rs:711:35
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace Moreover, we still have an unresolved issue with Windows DLL. See #973 for details. Once we remove the |
The first issue has been addressed via #1015 |
28b79e7
to
1072be1
Compare
Closes #1002.