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

[bug] Duplicate boost notifications #2858

Closed
benjaminbhollon opened this issue Apr 22, 2024 · 6 comments · Fixed by #2890
Closed

[bug] Duplicate boost notifications #2858

benjaminbhollon opened this issue Apr 22, 2024 · 6 comments · Fixed by #2890
Labels
bug Something isn't working
Milestone

Comments

@benjaminbhollon
Copy link

Describe the bug with a clear and concise description of what the bug is.

Fairly often lately, I've received duplicate poll notifications. Usually only two notifications total, but just now I received ten identical boost notifications from the same user at the same time for this post: https://alpha.polymaths.social/@amin/statuses/01HW1Z0MMSCT07Q7V9ADZQXPX4

They remain when I close my client and reload the notifications list and across multiple clients.

What's your GoToSocial Version?

v0.15.0

GoToSocial Arch

amd64 Binary

What happened?

No response

What you expected to happen?

I expect only to receive one notification per boost.

How to reproduce it?

No response

Anything else we need to know?

If it helps at all, I think I've only seen this problem with boosts from remote instances.

@benjaminbhollon benjaminbhollon added the bug Something isn't working label Apr 22, 2024
@tsmethurst
Copy link
Contributor

I've seen it too and think I know the cause! It's to do with multiple people from your instance receiving the boost, and the notif creation not being debounced, I think.

@tsmethurst tsmethurst added this to the v0.16.0 milestone Apr 22, 2024
@benjaminbhollon
Copy link
Author

How does that work? I'm having trouble imagining multiple people "receiving" a boost…

Oh, like in their home timeline?

@tsmethurst
Copy link
Contributor

Say 5 people on your instance follows the same person, and that person boosts the status of one of you. 5 people on your instance receive the Announce Activity in their inbox. Normally GoToSocial deduplicates side effects to make sure they're only performed once (in this case, creating a notification and storing the boost in the database). But I think it's possible that those side effects aren't being deduplicated properly in this case, hence the multiple notifications. But that's just my hunch, I have to actually investigate.

@benjaminbhollon
Copy link
Author

Okay, yeah, that makes sense.

@benjaminbhollon
Copy link
Author

Had it happen again with a boost from the same user, but this time with only three notifications, which is interesting data.

@tsmethurst
Copy link
Contributor

Well it's a race condition I believe, so it makes sense that the results will differ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants