TopicList shows unread messages / Orphaned posts
zeisss opened this issue · 4 comments
A look at the returned JSON shows a post which is empty & unread but won't be rendered since the parent is no longer part of the rendering tree.
The orphaned number of posts was just one. I deleted it manually. Maybe I should add a munin plugin for this which mails on any occurences?
I added a munin sensor for orphaned posts and topics. If this occurs again, I can watch it, but I guess that shouldn't happen often. More a ops solution then a code solution for now ;)
This happened again :(
I believe this was a classic race condition: One client started responding to a post while another one deleted the parent post. Because there was logic before to delete posts, if they don't have children; this might have let to these orphaned posts.
This haven't occured for at least 20 days and I also introduced a garbage-collector shell script, so I am closing this.