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

Guard e2e tun and udp channels on close #934

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Guard e2e tun and udp channels on close #934

merged 1 commit into from
Jul 26, 2023

Conversation

nbrownus
Copy link
Collaborator

@nbrownus nbrownus commented Jul 24, 2023

Instead of throwing a panic in a write after close in e2e tests, return an error or fail silently.

In the beginning there was a desire to tightly control packet flow in the e2e tests but as more complicated test cases arose that desire became very difficult to maintain. This led to tests with more automated packet shuffling than originally intended.

As a result some complicated tests can get into a situation where instances had just received a packet when we determine the test complete and close the nebula instance. The instance processing the packet determines it doesn't have a tunnel and tries to send a recv_error on the now closed fake udp socket.

@nbrownus nbrownus force-pushed the e2e-panic-test branch 5 times, most recently from 1cebf5d to c3ae7c3 Compare July 25, 2023 17:39
@nbrownus nbrownus changed the title WIP: Try to find what is writing after close Guard e2e tun and udp channels on close Jul 25, 2023
@nbrownus nbrownus merged commit 9c6592b into master Jul 26, 2023
6 checks passed
@nbrownus nbrownus deleted the e2e-panic-test branch July 26, 2023 17:52
@wadey wadey added this to the v1.8.0 milestone Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants