Check if cache works correctly during init #17380

Open
opened 2021-10-21 03:54:15 +00:00 by wxiaoguang · 0 comments
Contributor

Users may meet problem if the cache doesn't work. If we can check the cache during init, we can report this failure to users as early as possible.

2021/10/21 03:44:46 Started GET /repo/demo for x.x.x.x:yyyy
...
2021/10/21 03:44:46 ...ules/context/repo.go:849:func1() [E] GetCommitsCount: memcache: connect timeout to z.z.z.z:1234
...
2021/10/21 03:44:46 Completed GET /repo/demo 500 Internal Server Error in 255.614891ms

Originally posted by @tardich in https://github.com/go-gitea/gitea/issues/17369#issuecomment-948232414

Users may meet problem if the cache doesn't work. If we can check the cache during init, we can report this failure to users as early as possible. ``` 2021/10/21 03:44:46 Started GET /repo/demo for x.x.x.x:yyyy ... 2021/10/21 03:44:46 ...ules/context/repo.go:849:func1() [E] GetCommitsCount: memcache: connect timeout to z.z.z.z:1234 ... 2021/10/21 03:44:46 Completed GET /repo/demo 500 Internal Server Error in 255.614891ms ``` _Originally posted by @tardich in https://github.com/go-gitea/gitea/issues/17369#issuecomment-948232414_
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#17380
No description provided.