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(rln-relay): should error out on rln-relay mount failure #1904

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Aug 11, 2023

Description

Previously, we would let the node continue as usualy if the rln-relay failed to mount ~ this PR addresses that issue by bubbling up
the error to the setupProtocols proc in wakunode2.nim

Thanks @alrevuelta for the suggestion

Changes

  • Raises an exception instead of error logging on mount failure

Maybe we should convert all the mounting procs to return a result instead of raising exceptions?

@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:1904

@alrevuelta
Copy link
Contributor

Thanks for this! Its indeed very important to crash the node if rln was not configured properly and don't continue running the node.

Maybe we should convert all the mounting procs to return a result instead of raising exceptions?

Don't have a strong opinion on this. Guess its matter on where you draw the line between: till here is Result and from here is exception. Not a blocker for this PR I assume?

@github-actions
Copy link

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:1904

@rymnc rymnc force-pushed the fix-crash-on-rln-setup-failure branch 2 times, most recently from b30929a to 02c51ff Compare August 16, 2023 12:44
@rymnc rymnc force-pushed the fix-crash-on-rln-setup-failure branch from 02c51ff to 57ee247 Compare August 16, 2023 12:46
@rymnc rymnc marked this pull request as ready for review August 16, 2023 12:46
@vpavlin
Copy link
Member

vpavlin commented Aug 16, 2023

I would agree this is a good start and we should do an "analysis" of where wakunode should fail and where it is safe to continue

@rymnc rymnc merged commit 8c568ca into master Aug 16, 2023
12 checks passed
@rymnc rymnc deleted the fix-crash-on-rln-setup-failure branch August 16, 2023 13:30
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.

3 participants