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

refactoring(share/p2p): remove TTL in pubsub #2023

Merged
merged 3 commits into from
Apr 11, 2023

Conversation

vgonkivs
Copy link
Member

@vgonkivs vgonkivs commented Apr 4, 2023

Overview

Return TTL back to the default value to avoid message duplication with the same msgID.

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

@vgonkivs vgonkivs added area:shares Shares and samples area:p2p kind:refactor Attached to refactoring PRs labels Apr 4, 2023
@vgonkivs vgonkivs requested a review from renaynay as a code owner April 4, 2023 16:55
@vgonkivs vgonkivs self-assigned this Apr 4, 2023
@renaynay
Copy link
Member

renaynay commented Apr 5, 2023

Can you convert to draft @vgonkivs ? Let's test this first with testground. I'm not sure this resolves the issue.

@Wondertan
Copy link
Member

Wondertan commented Apr 6, 2023

This won't help. Because we never rebroadcast messages in the current code via PubSub means, as we always return ValidarionIgnore. We always rebroadcast via manual Broadcast.

After thinking about this for a while, I think the actual problem is that we send notifications to everyone, including to those from who we already received the notification.

@vgonkivs
Copy link
Member Author

vgonkivs commented Apr 6, 2023

Yeap, I agree that it will not help, but we don't need TTL=0 anyway

@vgonkivs vgonkivs marked this pull request as draft April 6, 2023 08:55
@Wondertan
Copy link
Member

True, I agree that we can merge it as is. It does not fix the root problem, but it doesn't make it worse and removes a confusion configuration.

@renaynay
Copy link
Member

renaynay commented Apr 6, 2023

@vgonkivs you can mark ready for review then, just change description

@vgonkivs vgonkivs marked this pull request as ready for review April 6, 2023 10:16
Copy link
Member

@renaynay renaynay left a comment

Choose a reason for hiding this comment

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

okya just update the description

@vgonkivs vgonkivs enabled auto-merge (squash) April 6, 2023 15:08
Copy link
Contributor

@derrandz derrandz left a comment

Choose a reason for hiding this comment

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

Can you fill me in about the root issue this was supposed to fix?

@vgonkivs vgonkivs merged commit d9615f0 into celestiaorg:main Apr 11, 2023
@Wondertan
Copy link
Member

@vgonkivs, pls reference an issue this pr aimed to solve originally

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:p2p area:shares Shares and samples kind:refactor Attached to refactoring PRs
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants