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: node restart test issue #2576

Merged
merged 5 commits into from
Apr 18, 2024
Merged

Conversation

Ivansete-status
Copy link
Collaborator

@Ivansete-status Ivansete-status commented Apr 9, 2024

Description

It has been detected an issue regarding node restart and reconnection. After reconnecting, the messages didn't get its destination.

Changes

  • The actual fix is provided by nim-libp2p update, and particularly the following commit: vacp2p/nim-libp2p@b30b265
  • Simplify the test_protocol.nim so that it doesn't start things twice, f.e. the relay

Issue

Special thanks to @AlejandroCabeza for such a great issue description 🥳

closes #2145

@Ivansete-status Ivansete-status self-assigned this Apr 9, 2024
@Ivansete-status Ivansete-status force-pushed the fix-node-restart-test-issue branch from d18c302 to 9e47b93 Compare April 9, 2024 10:15
Copy link

github-actions bot commented Apr 9, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2576-rln-v2-false

Built from 99d2cba

- Is not necessary to start the node if the switch object has been
started
- Enable an existing "Relay can receive messages after reboot and
reconnect" test
- Explicit reconnect to peer in "Relay can receive messages after reboot
and reconnect" test
…ch proc

With that, we avoid double start of the protocol.
@Ivansete-status Ivansete-status force-pushed the fix-node-restart-test-issue branch from 9e47b93 to 577084e Compare April 17, 2024 21:21
@Ivansete-status Ivansete-status marked this pull request as ready for review April 18, 2024 07:20
Copy link
Contributor

@NagyZoltanPeter NagyZoltanPeter left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks so much!

I wonder if this had the same root cause as #2592

waku/waku_relay/protocol.nim Show resolved Hide resolved
@Ivansete-status
Copy link
Collaborator Author

LGTM, thanks so much!

I wonder if this had the same root cause as #2592

ah maybe yes, thanks for the heads-up! I'll take a look

@Ivansete-status Ivansete-status merged commit 4a8e62a into master Apr 18, 2024
15 of 17 checks passed
@Ivansete-status Ivansete-status deleted the fix-node-restart-test-issue branch April 18, 2024 09:20
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.

bug: Can't reconnect relay client after restart
3 participants