Skip to content
Snippets Groups Projects
  • Vladimir Davydov's avatar
    3fe8c283
    box: don't set cluster uuid and instance id in initial snapshot · 3fe8c283
    Vladimir Davydov authored
    They aren't needed there as we reset them anyway once the snapshot is
    replayed on initial bootstrap. OTOH having them results in calling
    replica_{set,clear}_id twice on initial bootstrap, which will look weird
    when I patch them to log the ids. So let's remove them from the initial
    snapshot. This makes the initial bootstrap impossible to recover from as
    it is, but that shouldn't be an issue since one can always bootstrap a
    new instance in a normal way. This also allows us to make cluster uuid
    truly immutable (currently, one can update it with REPLACE).
    3fe8c283
    History
    box: don't set cluster uuid and instance id in initial snapshot
    Vladimir Davydov authored
    They aren't needed there as we reset them anyway once the snapshot is
    replayed on initial bootstrap. OTOH having them results in calling
    replica_{set,clear}_id twice on initial bootstrap, which will look weird
    when I patch them to log the ids. So let's remove them from the initial
    snapshot. This makes the initial bootstrap impossible to recover from as
    it is, but that shouldn't be an issue since one can always bootstrap a
    new instance in a normal way. This also allows us to make cluster uuid
    truly immutable (currently, one can update it with REPLACE).