Skip to content

server: Automatically repair redis AOF

Administrator requested to merge core/redis-aof into master

Created by: keegancsmith

If the AOF file exists, we automatically run the repair command on it. We do it in a best-effort fashion. So if the repair fails we will still try start redis, but will include in the log the failure. This should help a common reason our server container won't start. For example this has happened to sourcegraph.sgdev.org twice in the last week.

Test plan: CI. Haven't tested this closely at all, but will rely on CI that the image isn't broken + best effort nature to know we haven't broken anything in the bad case.

Fixes https://github.com/sourcegraph/sourcegraph/issues/651

Merge request reports

Loading