Issue 9413

Title
Random test failure of cache test
Priority
bug
Status
resolved
Nosy list
ced, reviewbot, roundup-bot
Assigned to
ced
Keywords
review

Created on 2020-06-13.12:22:52 by ced, last changed 9 months ago by roundup-bot.

Messages

New changeset ec16c835b92e by Cédric Krier in branch '6.2':
Avoid concurrency failure in cache with channel test
https://hg.tryton.org/trytond/rev/ec16c835b92e

New changeset c35bbc670aef by Cédric Krier in branch '6.0':
Avoid concurrency failure in cache with channel test
https://hg.tryton.org/trytond/rev/c35bbc670aef
New changeset 9d3c42cabc32 by Cédric Krier in branch 'default':
Avoid concurrency failure in cache with channel test
https://hg.tryton.org/tryton-env/rev/9d3c42cabc32
New changeset a32b84d96649 by Cédric Krier in branch 'default':
Avoid concurrency failure in cache with channel test
https://hg.tryton.org/trytond/rev/a32b84d96649
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-02-11.15:52:50

For the record, the problem appears mainly when the system is very buzzy and so thread takes time to start.
To simulate such condition, I used the stress command.

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-02-11.15:49:22

I could reproduce the failure by running manually the test on the drone host through a postgresql running on docker.
The main reason for the failure is that the listener has not started to listen for postgresql notification when the test is performing the commit.
review364831002 ensures to no more have racing thread concurrency when running the test (and also improve the reliability for the first transaction starting the listener).

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-06-27.08:07:47
New changeset 7f049049c884 by Cédric Krier in branch 'default':
Do not rely on keyword arguments order in LRUDict update test
https://hg.tryton.org/tryton-env/rev/7f049049c884
New changeset 966484cde88b by Cédric Krier in branch 'default':
Do not rely on keyword arguments order in LRUDict update test
https://hg.tryton.org/trytond/rev/966484cde88b
New changeset 799c032d713a by Cédric Krier in branch 'default':
Wait cache sync after clearing cache in test
https://hg.tryton.org/tryton-env/rev/799c032d713a
New changeset e14beb9c906c by Cédric Krier in branch 'default':
Wait cache sync after clearing cache in test
https://hg.tryton.org/trytond/rev/e14beb9c906c
Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2020-06-13.12:22:51
History
Date User Action Args
2022-02-26 11:48:58roundup-botsetkeyword: - backport
messages: + msg74360
2022-02-14 23:12:10roundup-botsetmessages: + msg74114
2022-02-14 23:12:06roundup-botsetmessages: + msg74113
status: testing -> resolved
2022-02-14 11:59:04reviewbotsetmessages: + msg74101
2022-02-11 16:05:49reviewbotsetmessages: + msg74023
2022-02-11 15:52:50cedsetmessages: + msg74022
2022-02-11 15:49:22cedsetkeyword: + backport
messages: + msg74021
reviews: 327461011 -> 327461011,364831002
status: in-progress -> testing
2022-02-11 15:41:34cedsetassignedto: ced
status: chatting -> in-progress
2020-06-27 08:07:48cedsetstatus: resolved -> chatting
assignedto: ced -> (no value)
messages: + msg58896
2020-06-23 00:22:08cedsetkeyword: - backport
2020-06-17 01:08:36roundup-botsetmessages: + msg58751
2020-06-17 01:08:27roundup-botsetmessages: + msg58750
2020-06-17 00:26:27roundup-botsetmessages: + msg58741
2020-06-17 00:26:23roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg58740
2020-06-17 00:25:35cedsetkeyword: + backport
2020-06-13 12:59:59reviewbotsetnosy: + reviewbot
messages: + msg58691
2020-06-13 12:57:51cedsetstatus: unread -> testing
reviews: 327461011
keyword: + review
assignedto: ced
2020-06-13 12:22:52cedcreate