Page MenuHomeSoftware Heritage

Prevent the storage server from starting in case of db version mismatch
Closed, MigratedEdits Locked

Description

We do not want a local storage server to start by default (but this should be modifiable via a config option of some sort) if the version of its backend database does not match the "current" version.

(The problem is we do not have this "current" version easily available from python)

Q: should this only prevent a storage RPC server from starting, or should it prevent a local storage object from being instantiated?

Event Timeline

douardda triaged this task as Normal priority.Aug 20 2020, 10:57 AM
douardda created this task.
douardda updated the task description. (Show Details)

Just to make is clear, my main objective here is to have a seatbelt for the mirror scenario: prevent a mirror with updated code but not-yet-updated database from even running until the DB migration script has been executed.