Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mariadb] Fix race condition for grastate.dat
There seems to be a race condition involving the grastate.dat file. Upon creation of a new mariad-server pod the file would exist however, it is not populated for a short period of time. It seems to take around 15-20 seconds for this file to be populated. However there is a separate thread which is attempting to read the file and tends to end in an IndexError exception killing the thread which maintains the grastate.dat file until the pod is restarted. This patchset adds a loop to check for up to 60 seconds for the file to be populated before attempting to continue, thus giving the file time to be populated. Change-Id: I2f2a801aa4528a7af61797419422572be1c82e75
- Loading branch information