Ok, so I have some code to crawl a posting of a community and compare two servers for comments missing. It looks bad today. Both of these servers are version 0.18.0 and have been upgraded for several days.
missing 0 unequal 0 11 on https://lemmy.ml/ vs. 11 on https://sh.itjust.works/
missing 35 unequal 1 48 on https://lemmy.ml/ vs. 14 on https://sh.itjust.works/
missing 4 unequal 0 9 on https://lemmy.ml/ vs. 5 on https://sh.itjust.works/
missing 6 unequal 0 9 on https://lemmy.ml/ vs. 3 on https://sh.itjust.works/
missing 1 unequal 0 1 on https://lemmy.ml/ vs. 0 on https://sh.itjust.works/
missing 6 unequal 0 12 on https://lemmy.ml/ vs. 6 on https://sh.itjust.works/
missing 3 unequal 0 8 on https://lemmy.ml/ vs. 5 on https://sh.itjust.works/
missing 3 unequal 0 6 on https://lemmy.ml/ vs. 4 on https://sh.itjust.works/
missing 22 unequal 0 42 on https://lemmy.ml/ vs. 20 on https://sh.itjust.works/
missing 5 unequal 0 15 on https://lemmy.ml/ vs. 10 on https://sh.itjust.works/
missing 8 unequal 2 17 on https://lemmy.ml/ vs. 9 on https://sh.itjust.works/
missing 3 unequal 0 3 on https://lemmy.ml/ vs. 0 on https://sh.itjust.works/
missing 0 unequal 0 10 on https://lemmy.ml/ vs. 10 on https://sh.itjust.works/
missing 11 unequal 0 24 on https://lemmy.ml/ vs. 13 on https://sh.itjust.works/
missing 1 unequal 0 2 on https://lemmy.ml/ vs. 1 on https://sh.itjust.works/
missing 13 unequal 0 37 on https://lemmy.ml/ vs. 24 on https://sh.itjust.works/
missing 3 unequal 0 7 on https://lemmy.ml/ vs. 4 on https://sh.itjust.works/
missing 0 unequal 0 10 on https://lemmy.ml/ vs. 10 on https://sh.itjust.works/
missing 60 unequal 2 186 on https://lemmy.ml/ vs. 126 on https://sh.itjust.works/
missing 10 unequal 2 51 on https://lemmy.ml/ vs. 41 on https://sh.itjust.works/
missing 16 unequal 0 51 on https://lemmy.ml/ vs. 36 on https://sh.itjust.works/
missing 31 unequal 3 128 on https://lemmy.ml/ vs. 97 on https://sh.itjust.works/
missing 0 unequal 0 4 on https://lemmy.ml/ vs. 4 on https://sh.itjust.works/
missing 2 unequal 0 5 on https://lemmy.ml/ vs. 3 on https://sh.itjust.works/
missing 15 unequal 1 67 on https://lemmy.ml/ vs. 52 on https://sh.itjust.works/
missing 4 unequal 0 53 on https://lemmy.ml/ vs. 49 on https://sh.itjust.works/
missing 0 unequal 0 5 on https://lemmy.ml/ vs. 5 on https://sh.itjust.works/
missing 0 unequal 0 0 on https://lemmy.ml/ vs. 0 on https://sh.itjust.works/
missing 1 unequal 0 19 on https://lemmy.ml/ vs. 18 on https://sh.itjust.works/
missing 0 unequal 0 2 on https://lemmy.ml/ vs. 2 on https://sh.itjust.works/
missing 0 unequal 0 22 on https://lemmy.ml/ vs. 22 on https://sh.itjust.works/
missing 0 unequal 0 16 on https://lemmy.ml/ vs. 18 on https://sh.itjust.works/
missing 0 unequal 0 7 on https://lemmy.ml/ vs. 7 on https://sh.itjust.works/
missing 3 unequal 0 27 on https://lemmy.ml/ vs. 24 on https://sh.itjust.works/
missing 2 unequal 0 32 on https://lemmy.ml/ vs. 30 on https://sh.itjust.works/
missing 3 unequal 0 21 on https://lemmy.ml/ vs. 18 on https://sh.itjust.works/
missing 3 unequal 1 16 on https://lemmy.ml/ vs. 13 on https://sh.itjust.works/
missing 3 unequal 1 47 on https://lemmy.ml/ vs. 44 on https://sh.itjust.works/
missing 1 unequal 0 24 on https://lemmy.ml/ vs. 23 on https://sh.itjust.works/
The number of comments is based on loading comments, not the counts at the top of the posting.
I wonder if some instances are more prone to drop comments that others? have you looked for example at lemmy.world (very large but performant) and another relatively small instance?
Yes, and I run my own instance that is on a high performance server and it has no users other than myself for testing Lemmy.
Lemmy.ml is having the most problems, but really all of the big servers are dropping comment and post replication. The biggest problem is that server operators have no way to know this is happening other than to read raw Linux error logs. The post ID numbers are unique to each server, so it is not easy to identify which link is for the same postings.
I think I saw one of your earlier posts and I really appreciate you chasing this down and raising awareness. As a relatively savvy user this is definitely something I’ve noticed and I share your concern that it will slowly erode user’s trust in the concept of federation.
Technically, can you trace where the comments are dropped? does the target receive the response but fails to process it, or does it break somewhere at the network layer? if so, is there no receiver “ack” built into the protocol? sorry for asking a bunch of questions and feel free to ignore (I’m an engineer but I don’t know much about the federation protocol…)
There are multiple timing and resource issues with the way content is sent. Every single vote and comment has a lot of overhead, and the Lemmy servers are causing each other to slow down with the overhead of it all. There are even very tight security timings that have been hit causing rejection. And there system has no automated way to repair missing content, it just tires to keep up with each new posting, comment, vote.
Could you do a little bit more analysis to determine the typical failure mode?
For instance, my first guess would be that information is more likely to get lost when a comment/vote needs to go through multiple servers.
That is, a thread is on a community on server A, with people commenting from servers A, B and C. AFAIU, all data synchronisation goes through server A, as that’s where the community lives. So a comment from server B, even it’s in response to a comment/post from server C needs to go through server A and then to server C.
If these multi-server trips get dropped the most, you’d expect views of the thread to be most inconsistent between servers B and C and that the most dropped content to be from servers B or C when viewed from the other of these two.
The failures have more to do with server performance related to the quantity of new comments and activities than anything. There are periods of time that it fails worse than others and even when web browsers visiting the servers show errors.
How much of this is just the nature of activity pub and federation over it?
Putting aside whether lemmy is doing a good or bad job, it seems like an issue at the protocol level? For instance, if lemmy were to implement some additional procedures as you hint at, would they work for federation outside of lemmy or would they even cause problems or bugs?
I’m pretty sure I’ve seen things get dropped in similar ways on other micro-blog platforms. It could be that the community/group based structure just surfaces the issues more because you can compare whole communities instead of individual reply threads in microblogging. Maybe activity pub isn’t appropriate for federated group activity?
Have you looked at similar issues with kbin?
Also, thanks for this work. High level end-to-end testing like this is probably invaluable!!
I haven’t had time to look at kbin.
The Lemmy servers are logging errors, but the messages need organization and are rather difficult to access by server operators. Growing pains.
Just to pose these in a similar thread, I have a few questions as a casual observer, some of which I’m unclear if they’re handled at the protocol or Lemmy level.
Sorry I don’t know the answers to these questions. Also, I don’t think the OP will get a notification for your content (?) unless you reply to them directly, just in case you want to ask them.
That’s one of the things that bothers me the most, even email systems in 1993 that I worked on - which far slower hardware and matching the volume Lemmy is doing today - would at least send a delivery failure report back to the sender. Here on Lemmy, you can reply to someone on another server, but you do not get notified if the delivery fails.
Agreed. Today I realized that not only do I not see the same posts/comments in the same community with different accounts (world & sh.it.works) but even in my own posts the comments/votes are vastly different. In one instance even a reply comment from someone was linked to another comment! I know things are new and all but… this kinda worries me… a lot in fact. Yes today world had major issues but still… I mean the “silo” community on there looks completely different with a world account than with the other one.
Here is a fresh report on Lemmy.world vs. feddit.nl:
missing 1 unequal 0 1 on https://lemmy.world/ vs. 0 on https://feddit.nl/
missing 5 unequal 0 10 on https://lemmy.world/ vs. 5 on https://feddit.nl/
missing 3 unequal 0 14 on https://lemmy.world/ vs. 11 on https://feddit.nl/
missing 4 unequal 0 5 on https://lemmy.world/ vs. 1 on https://feddit.nl/
missing 16 unequal 0 31 on https://lemmy.world/ vs. 15 on https://feddit.nl/
missing 13 unequal 0 25 on https://lemmy.world/ vs. 12 on https://feddit.nl/
missing 0 unequal 0 2 on https://lemmy.world/ vs. 2 on https://feddit.nl/
missing 0 unequal 0 6 on https://lemmy.world/ vs. 6 on https://feddit.nl/
missing 3 unequal 0 8 on https://lemmy.world/ vs. 5 on https://feddit.nl/
missing 1 unequal 0 30 on https://lemmy.world/ vs. 29 on https://feddit.nl/
missing 5 unequal 1 14 on https://lemmy.world/ vs. 9 on https://feddit.nl/
missing 11 unequal 0 18 on https://lemmy.world/ vs. 7 on https://feddit.nl/
missing 15 unequal 1 25 on https://lemmy.world/ vs. 10 on https://feddit.nl/
missing 9 unequal 0 16 on https://lemmy.world/ vs. 7 on https://feddit.nl/
missing 3 unequal 1 12 on https://lemmy.world/ vs. 9 on https://feddit.nl/
missing 14 unequal 0 49 on https://lemmy.world/ vs. 35 on https://feddit.nl/
missing 8 unequal 0 12 on https://lemmy.world/ vs. 4 on https://feddit.nl/
missing 1 unequal 0 3 on https://lemmy.world/ vs. 2 on https://feddit.nl/
missing 5 unequal 0 18 on https://lemmy.world/ vs. 13 on https://feddit.nl/
missing 2 unequal 0 2 on https://lemmy.world/ vs. 0 on https://feddit.nl/
missing 1 unequal 1 11 on https://lemmy.world/ vs. 10 on https://feddit.nl/
missing 0 unequal 0 6 on https://lemmy.world/ vs. 6 on https://feddit.nl/
missing 8 unequal 1 25 on https://lemmy.world/ vs. 17 on https://feddit.nl/
missing 2 unequal 0 5 on https://lemmy.world/ vs. 3 on https://feddit.nl/
missing 3 unequal 0 6 on https://lemmy.world/ vs. 3 on https://feddit.nl/
missing 6 unequal 0 12 on https://lemmy.world/ vs. 6 on https://feddit.nl/
missing 30 unequal 1 95 on https://lemmy.world/ vs. 65 on https://feddit.nl/
missing 0 unequal 0 0 on https://lemmy.world/ vs. 0 on https://feddit.nl/
missing 10 unequal 0 20 on https://lemmy.world/ vs. 10 on https://feddit.nl/
missing 46 unequal 2 81 on https://lemmy.world/ vs. 37 on https://feddit.nl/
missing 64 unequal 0 199 on https://lemmy.world/ vs. 135 on https://feddit.nl/
missing 0 unequal 0 3 on https://lemmy.world/ vs. 3 on https://feddit.nl/
missing 0 unequal 0 2 on https://lemmy.world/ vs. 2 on https://feddit.nl/
missing 3 unequal 3 26 on https://lemmy.world/ vs. 23 on https://feddit.nl/
missing 4 unequal 0 10 on https://lemmy.world/ vs. 6 on https://feddit.nl/
missing 1 unequal 0 5 on https://lemmy.world/ vs. 4 on https://feddit.nl/
missing 5 unequal 0 20 on https://lemmy.world/ vs. 15 on https://feddit.nl/
missing 2 unequal 0 2 on https://lemmy.world/ vs. 0 on https://feddit.nl/
missing 10 unequal 1 33 on https://lemmy.world/ vs. 23 on https://feddit.nl/
missing 0 unequal 0 4 on https://lemmy.world/ vs. 4 on https://feddit.nl/
missing 17 unequal 0 72 on https://lemmy.world/ vs. 55 on https://feddit.nl/
missing 6 unequal 0 14 on https://lemmy.world/ vs. 8 on https://feddit.nl/
missing 7 unequal 1 31 on https://lemmy.world/ vs. 24 on https://feddit.nl/
missing 1 unequal 0 1 on https://lemmy.world/ vs. 0 on https://feddit.nl/
missing 1 unequal 0 9 on https://lemmy.world/ vs. 8 on https://feddit.nl/
missing 3 unequal 0 7 on https://lemmy.world/ vs. 4 on https://feddit.nl/
missing 13 unequal 1 40 on https://lemmy.world/ vs. 27 on https://feddit.nl/
missing 3 unequal 0 10 on https://lemmy.world/ vs. 7 on https://feddit.nl/
missing 7 unequal 0 17 on https://lemmy.world/ vs. 10 on https://feddit.nl/