mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)
Mark Smith ([staff profile] mark) wrote in [site community profile] dw_maintenance2019-12-07 09:40 am

Long-standing notification issue fixed

While working on the notifications system, I discovered the cause of an issue that has been around for a while that caused a number of users to be unable to receive some notifications. In the worst cases, you would never get an email or inbox notification of new comments, no matter how many times you toggled it on.

This is now fixed.

The story is kind of gory but the short version is that a couple of years ago when we created a new database cluster and moved a bunch of users to it, some subscriptions got 'left behind' on the old cluster. Our subscriptions and notifications system was seeing these old notifications, but later in the process when attempting to generate a notification, was throwing them out because they didn't match the user's 'correct' cluster.

I've pruned the notification rules that were on the incorrect cluster for all users (about 1.1 million notification rules, actually) and this should resolve the issue where notifications didn't work in a number of cases.
pronker: snowflake promo (Default)

[personal profile] pronker 2019-12-07 06:11 pm (UTC)(link)
*whoosh, info goes over head* but thanks for your work. :)
havocthecat: the lady of shalott (Default)

[personal profile] havocthecat 2019-12-07 06:15 pm (UTC)(link)
Yikes! But also, wow, thanks for fixing that.
ilyena_sylph: monster fistpumps and says "Hey! Yay!" (MLC: yay!)

[personal profile] ilyena_sylph 2019-12-07 06:23 pm (UTC)(link)
+applauds you some more, with an adorable monster!+
kore: (Dreamwidth - green)

[personal profile] kore 2019-12-07 06:49 pm (UTC)(link)
Thank you for the information and the transparency!
althea_valara: Photo of my cat sniffing a vase of roses  (Default)

[personal profile] althea_valara 2019-12-07 07:23 pm (UTC)(link)
Congrats on fixing a long-standing bug!

Are notifications being delayed right now due to this? Because I noticed i haven't received a notification for this comment in either my DW inbox or email.
alexseanchai: Katsuki Yuuri wearing a blue jacket and his glasses and holding a poodle, in front of the asexual pride flag with a rainbow heart inset. (Default)

[personal profile] alexseanchai 2019-12-07 07:37 pm (UTC)(link)
\o/
veritas_poet: (Am I invisible)

[personal profile] veritas_poet 2019-12-07 08:17 pm (UTC)(link)
I've very rarely gotten notifications. I gave up expecting them. But no one reads my journal anyway these days, so I guess it doesn't matter.
sovay: (Rotwang)

[personal profile] sovay 2019-12-07 08:20 pm (UTC)(link)
Are notifications being delayed right now due to this? Because I noticed i haven't received a notification for this comment in either my DW inbox or email.

I have also just received a comment without any form of notification.

[edit] I have now received a second comment without either e-mail or inbox notification. I am used to seeing both.

Thanks!
Edited 2019-12-07 20:24 (UTC)
echan: rainbow arch supernova remnant (Default)

[personal profile] echan 2019-12-07 08:37 pm (UTC)(link)
Huzzah!

And, separately, I greatly appreciate the details you provide when things are borked and/or fixed.
rydra_wong: Lee Miller photo showing two women wearing metal fire masks in England during WWII. (Default)

[personal profile] rydra_wong 2019-12-07 08:39 pm (UTC)(link)
Thirding ...
trobadora: (Default)

[personal profile] trobadora 2019-12-07 09:06 pm (UTC)(link)
Same here.

I have two comments on a locked post, but only received a notification for one of them. The other is missing both via email and in the DW inbox.
asymbiotic: (50)

[personal profile] asymbiotic 2019-12-07 09:17 pm (UTC)(link)
Right now I'm not receiving notifications on at least this account (I've received two of an estimated 15 in the last two hours, both from the same account oddly enough) and several other people in rp-land are reporting no notifications either.
Edited 2019-12-07 21:23 (UTC)

[personal profile] casimirian 2019-12-07 09:18 pm (UTC)(link)
Wooooo! Awesome job!

[personal profile] casimirian 2019-12-07 09:20 pm (UTC)(link)
If you haven't yet, try finding journals to read and people to share your journal with this community. :)
https://addme.dreamwidth.org
dennisgorelik: 2020-06-13 in my home office (Default)

Root cause analysis?

[personal profile] dennisgorelik 2019-12-07 10:54 pm (UTC)(link)
> was throwing them out because they didn't match the user's 'correct' cluster

Did you investigate why (and when) your system was programmed that way?

The correct behavior in the situation when code processes inconsistent data -- is to notify developers about unexpected situation that developers have to revisit and recode.

If code silently ignores problems - it leads to years of misdiagnosed misbehavior.
Edited 2019-12-07 22:56 (UTC)
krait: a sea snake (krait) swimming (Default)

[personal profile] krait 2019-12-07 11:40 pm (UTC)(link)
Congrats on tracking down the notification issue! I know it's been bugging (heh) people for a while now.




I am currently having an issue where trying to post a poll returns the message: Error updating journal: Poll error: All poll-question (or lj-pq) tags must be nested inside an enclosing poll (or lj-poll) tag.

I have opened a support ticket, but I'm really hoping there's a faster way to figure out what's going on, because the pole in question is kinda time-relevant (it's for holiday cards). Is there somewhere I can check to see if others are having the problem and find a solution?
Edited (fixed the missing html tag) 2019-12-07 23:40 (UTC)
veritas_poet: (Rose)

[personal profile] veritas_poet 2019-12-08 12:31 am (UTC)(link)
Thanks.
momijizukamori: (space dad)

[personal profile] momijizukamori 2019-12-08 12:31 am (UTC)(link)
Hmm, I was just able to create a poll without any issue - if you add the code that's giving you the error to the support ticket, we might be able to do more debugging.

(in a pinch, I know a lot of people use google docs forms for holiday card info-gathering)
pauamma: Cartooney crab wearing hot pink and acid green facemask holding drink with straw (Default)

[personal profile] pauamma 2019-12-08 03:54 am (UTC)(link)
Could that (or something like it) also be the cause of the double notifications I (and IIRC some others) am getting (in both email and my DW inbox) for some things, most notably newsposts?
kalloway: A close-up of Rocbouquet from Romacing SaGa 2 (Default)

[personal profile] kalloway 2019-12-08 05:09 am (UTC)(link)
I get double newsposts but that's it, weirdly.
graildiary: (Default)

[personal profile] graildiary 2019-12-08 06:10 am (UTC)(link)
what if we still have accounts that are not receiving notifs, or accounts getting double notifs? i have filed support tickets about these issues in the past and received no response :/
darjeeling: » yuu-icons (MOVIE | friends in fuzzy places)

[personal profile] darjeeling 2019-12-08 06:10 am (UTC)(link)
This problem has been plaguing some of my RP journals for over two years, I could kiss you right now for having fixed it. Thank you!!
darjeeling: (Default)

[personal profile] darjeeling 2019-12-08 06:18 am (UTC)(link)
Yes! One of my affected journals was [personal profile] grimreaping and I just dropped a test comment on one of the posts there, and it came through immediately to my email as normal! Before, it wouldn't go to either the DW inbox or my email. I'd given up on using the journal again because there was no way to track my game tags.

Page 1 of 3