Users missing from topic list participants


(Erlend Sogge Heggen) #1

How come riking is missing in the overview?

He made two replies to that conversation. codinghorror merely closed it.


Topic list avatars are missing
(Jeff Atwood) #2

Dunno, scheduled task stuff @eviltrout?


(Sam Saffron) #3

maybe closed are being skipped for some reason


(Erlend Sogge Heggen) #4

I’ve noticed another instance of this, in an unclosed, active thread:


(Matches) #5
https://meta.discourse.org/t/users-icon-from-topic-category-not-reflecting-all-posts/17825?u=matches&source_topic_id=12768

It is amazingly difficult to get the link on mobile, the share link doesn’t full select and no copy button. Have to drag, scroll drag scroll copy. …

Same issue, probably not just closing then.


(lid) #6

I just noticed it a topic i replied to

Wordpress Dashboard for Discourse

There are 3 posts in this topic one of them is mine(2nd) and i am not in the participant list.


(Jeff Atwood) #7

Yeah this happens with annoying frequency. Another example


(lid) #8

It just happened to this topic after you replied

I don’t see a pattern

###Could be it “most recent posts” and most “posts” are colliding?


(lid) #9

let see test if most recent posts and most posts collide?
I guess not!


(Jeff Atwood) #10

This is probably my #1 hated long running bug in Discourse. So annoying, and it has been happening for a year now.


(lid) #11

So
Original poster, and last poster are safe, that leaves the possible cause on

 topic.featured_user1_id,
 topic.featured_user2_id,
 topic.featured_user3_id,
 topic.featured_user4_id

This is probably just shooting in the air or in other words guessing, here The scheduler, reset them to nil in post_jobs_enqueuer.rb feature_topic_users() method) but for mysterious reason it is not able to set them back properly ( could be indexing related, I am not sure)

you can probably see better in the database logs if there was any error and what is the state of those columns


(loopback0 - TDWTF) #12

If this helps with repro - it’s happening on pretty much every recent topic on TDWTF - looks like every topic created in the last 2 days doesn’t update it, but it updates fine on topics older than that.


(Sam Saffron) #13

Sidekiq is hosed for some reason at TDWTF, I will ssh in and look at the root cause.

cc @PJH

Regarding this particular issue I will look at adding a job that fixes this to the “ensure db consistency” set of jobs.


(Sam Saffron) #14

There is a job that fixes this stuff now twice daily:

https://github.com/discourse/discourse/commit/5193c9fd164be971b13f32462ac8f732e1a0c2a0


User icon remains in latest list after post is deleted
(Sam Saffron) #15

Confirming @riking is there now … so closing.


(Sam Saffron) #16