Open tcmitchell opened 8 years ago
A theory we have is that maybe the initialize()
function in ch_server.py
is being called a second time before the first occurrence has finished initializing. The chapi.log file for the same time period as the error above (which was in Apache's error log) shows that it never reached the last line of initialize()
where "INITIALIZED CH_SERVER" is logged. If this is the case, perhaps we could add a semaphore to initialize to indicate that the system is initializing so that other threads do not re-enter the code.
We have sporadically seen a SQLAlchemy error about a specific class that already has a primary mapper defined:
This has occurred on one of our development hosts with some frequency recently. It also occurred a few times about a week ago on our staging host.
On the development host I rearranged the lines in
MAv1Implementation.__init__()
so that the MemberAttribute class was mapped last instead of first. The error when away. When I put the code back the way it was, the error did not reoccur. This means it is not reproducible. It has not occurred since.