-
Notifications
You must be signed in to change notification settings - Fork 40
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
Double post in fediverse -> AtProto #1063
Comments
So odd! Sorry for the trouble. I got another report of this today too, #947 (comment), but that one was seemingly caused by editing the Mastodon reply, which doesn't look like it happened here. No clue what's going on yet. |
No worries, just figured it's one of those weird bugs you'd want examples of to diagnose |
Oh that's interesting, same thing popped up when I replied to your post. https://snarfed.org/2024-05-20_53092 |
Yes! I saw that too. Those are webmentions, but maybe still related. And ideally BF wouldn't send two, but they have the same |
Aha. One part of the root cause here is that we're getting the same activity delivered to us multiple times to different hosts. Eg @TomCasavant's instance delivered the reply activity in #1063 (comment) twice, once to web.brid.gy and once to bsky.brid.gy. #685 would help here, but I'd also like to make sure that processing is idempotent all the way through regardless. It is for sending webmentions, but evidently not for creating records in ATProto repos, we're duplicating the same post with different tids (rkeys). Hrm. Ideally we should map input objects to tids deterministically. |
I made an infrastructure change yesterday that should hopefully prevent these duplicates. Please let me know if you see any new ones! I still want to map AP ids to ATP tids deterministically, I'll leave this open to track that. |
@TomCasavant have you seen this happen any more in the last week? I may skip making ids => tids deterministic, the new idempotence may be enough. |
I haven't seen it happen again |
Thanks! |
This still seems to be happening in some form (not sure if it's the same issue)... Example: If you query for They're 189 seqs apart, so that's something like 3-4 seconds, and they have the exact same JSON content. Also the original post at https://indieweb.social/@jaredwhite/112528096281782994 doesn't seem to have been edited, so it looks more like some kind of race condition thing. A query in my database for duplicate rkeys from the Bridgy PDS shows several such cases from the last 2 days:
|
@mackuba interesting, thanks! Yeah that's a different issue. This issue was for user-visible duplicates, ie the same fediverse post resulting in two different Bluesky posts with different tids. Multiple create events for the same tid/record obviously isn't ideal either, you're right, but definitely lower priority. |
Ugh. Thank you! Reopening. Seems pretty clear there's a race condition here somewhere that I need to track down. |
If it helps I've got a few more examples of this https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3kwhulyzmmrz2 - the reply to this is duplicated and the reply to that reply is duplicated https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3kw6dpxgmzs72 and the reply to this one is duplicated It seems to be happening more often or at least everytime I reply to my own status |
Actually this might be a different issue, here's a duplication that's a top level post not a reply https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3kwiegnnby222 https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3kwiegn55akz2 |
It does seem to be happening a bit more often, agreed. 😕 We can track all duplicates here though, I doubt the root cause is different for replies vs top level posts. |
I'm looking at this now. Awkward embarrassing bug, definitely needs to be fixed ASAP. |
for #1063, should fix it. coming up with the test for this was fun!
I deployed ^ 89e2372 a bit ago, it should hopefully fix this. |
Tentatively closing. Please reopen if you see any more dupes! |
https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3ksumarmd4j52 top level post
https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3ksuuv77l5pn2 reply
https://bsky.app/profile/tom.tomkahe.com.ap.brid.gy/post/3ksuuv6ivb2p2 duplicate reply (https://tomkahe.com/@tom/112469674016938064)
I think this happened to me a few weeks ago as well but I can't find it. In both cases it was just in the replies and not a top level post
The text was updated successfully, but these errors were encountered: