Red Hat Bugzilla – Bug 1027564
TestCaseRunStatus cached in a non thread-safe way
Last modified: 2014-10-19 22:18:34 EDT
Description of problem:
In 3.8.5, as a quick solution to the performance headache in aggregating the progress for one testrun, the case_run_status is cached using a class level dictionary which basically is a global variable. In a shared-nothing environment such as Apache WSGI, this is a thread-unsage. Because in one process, this dictionary gets outdated, it doesn't in other running processes.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Need to change it to a thread-safe way. Possible solution might be to utilize a robust caching backend, such as memcached or better redis.
Related to 1027589
https://bugzilla.redhat.com/show_bug.cgi?id=1027589 has been modified.