Issue 11397

Title
Cache invalidation does not work after a disconnection to the database
Priority
bug
Status
resolved
Nosy list
ced, nicoe, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2022-04-08.18:47:55 by nicoe, last changed 1 week ago by roundup-bot.

Messages

New changeset ee0eed0f64d2 by Cédric Krier in branch 'default':
Clear cache just after starting to listen
https://hg.tryton.org/tryton-env/rev/ee0eed0f64d2
New changeset defde6b8f3de by Cédric Krier in branch 'default':
Clear cache just after starting to listen
https://hg.tryton.org/trytond/rev/defde6b8f3de
Author: [hidden] (nicoe) Tryton committer
Date: 2022-04-08.18:47:55

In case there is a disconnection to the database, trytond will be able to reconnect and will keep working. But the thread used to synchronize the cache won't survive, the thread will be restarted later but it might have missed some message.

So we must clear the caches right after the LISTEN call.

History
Date User Action Args
2022-09-25 20:23:46roundup-botsetmessages: + msg78300
2022-09-25 20:23:36roundup-botsetmessages: + msg78299
nosy: + roundup-bot
status: testing -> resolved
2022-09-19 00:18:23reviewbotsetmessages: + msg78217
nosy: + reviewbot
2022-09-18 23:56:00cedsetassignedto: ced
keyword: + review
nosy: + ced
reviews: 431631003
status: unread -> testing
2022-04-08 18:47:55nicoecreate