{"push_id":1185602617,"size":1,"distinct_size":1,"ref":"refs/heads/hard-state","head":"7e9eb872cd3ee4b4d637ad2945d554927d78cedb","before":"a82eca7a6d216fb9b9e0564a1fc537c066c9edf8","commits":[{"sha":"7e9eb872cd3ee4b4d637ad2945d554927d78cedb","author":{"name":"Tobias Schottdorf","email":"b6841086cafcf6616505d164b61ac2cf1ab42c4e@gmail.com"},"message":"storage: always write a HardState\n\nAs discovered in\nhttps://github.com/cockroachdb/cockroach/issues/6991#issuecomment-230054238,\nit's possible that we apply a Raft snapshot without writing a corresponding\nHardState since we write the snapshot in its own batch first and only then\nwrite a HardState.\n\nIf that happens, the server is going to panic on restart: It will have a\nnontrivial first index, but a committed index of zero (from the empty\nHardState).\n\nThis change prevents us from applying a snapshot when there is no HardState\nsupplied along with it, except when applying a preemptive snapshot (in which\ncase we synthesize a HardState).","distinct":true,"url":"https://api.github.com/repos/tschottdorf/cockroach/commits/7e9eb872cd3ee4b4d637ad2945d554927d78cedb"}]}
{"actor":{"display_login":"tschottdorf"}}