The discussion revolves around an issue with notifications stuck on non-existing users. bartv reports that users are receiving the same notifications multiple times due to Sidekiq retrying notifications for a non-existent user. sam suggests searching the database for the user ID to see if any records are left behind. After checking the topic_users table, bartv finds nothing. sam proposes that the issue might be due to the user watching all posts with mailing list mode enabled, but bartv can’t find any relevant records.
codinghorror asks if there are any third-party plugins installed, and bartv confirms that there are, but wants to investigate the database before disabling any plugins. Eventually, bartv suspects that the issue is caused by the Follow plugin.
My users are reporting an issue where they will keep getting the same notification for new posts. I’ve tracked it back to a non-existing user, and it seems Sidekiq keeps retrying these notifications which results in the these people getting the notification multiple times.
I have killed these retries in the past, but they’ll resurface after a while. Shouldn’t they just ‘give up’ and not retry?
This is odd for sure. Can you sweep the DB searching for user_id 44269, maybe when we nuke the user record we left it around in some tables and this is triggering the issue.