Closed SagePtr closed 5 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
This issue has been automatically closed because of inactivity. You can re-open it if needed.
[x]
):Description
If mysql connection is closed by mysql server (due to activity timeout) - git-receive-pack returns 404 and git client shows message repo doesn't exist.
How to reproduce:
wait_timeout
andinteractive_timeout
to something small (in my example it was 60 seconds).git push
(it will be successful probably)git push
again. Result will befatal: repository 'http://localhost:3000/username/reponame.git/' not found
returned by git client.git push
one more time. Now it will be successful.Logs
step 2 (successful)
step 4 (failed)
step 5 (successful)
Expected behavior
If established connection to mysql was closed and cannot be reused for query, that query should be retried at least once rather then failing at all. And if there is error, this error should be one of 5** errors (indicating server error), not 404.
Probably this won't ever happen in real life because MySQL default timeout is 8 hours and between these 8 hours mysql connection will be reused multiple times.