There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f08ca424-0e2f-4bcd-be98-9a2592926b4d XWIKI-22262 Open

NotificationsIT.simpleNotifications is flickering

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-6d9fdf88-9f04-495d-b88a-ded2487dc37e Manuel Leduc on 06/Mar/25 17:57
 
Summary of the scenario leading to the flicker
* User 2 follows the entier wiki
* User 1 creates a bunch of pages
* User 2 check the notification counts

When not flickering
* The notification bell display a count red pill, and User 2 is able to get access to the notification counts

When flickering:
* The notification bell does not have a red pill with the count

Hypothesis:
# something goes wrong when saving the "watch whole wiki" step. Therefore, all the events produces by User 1 are ignored
# something goes wrong when loading the notification bell and the count is badly loaded or badly displayed
# the event produced by User 1 are still waiting in the queue when User 2 goes to check the notifications
(can probably be ruled out, see explanations below)
# the user notifications are persisted correcrly but are not correcrly used on some part of the event to notifications process (e.g., some cache is not correcrtly invalidated)

Currently conclusion:
* we tried to wait for the event stream queue to be empty before checking the notifications count, to change the priority on the thread in {color:#000000}UserEventDispatcherScheduler{color}, and to greatly increase the number of attemps and wait time between attemps in {color:#00627a} waitOnNotificationCount{color}, all with the same result, waitOnNotificationCount is something returning a count of 0
* I also checked the notification configuration of users on instances where the test failed. From my current observations, the values seems corrects