Skip to content

Commit

Permalink
storage: force new lease sequence number after restart
Browse files Browse the repository at this point in the history
While we were already making sure that a lease obtained before a node
restart was not used after, the new requested lease would usually be an
extension of the old. As such, commands proposed under both would be
able to apply under the new one, which could theoretically cause
consistency issues as the previous commands would not be tracked by the
command queue (though it would be hard to engineer and has not been
observed in practice, to the best of our knowledge).

This change plugs that hole by preventing an extension of a previously
held lease post restart.

Touches cockroachdb#10420.

Release note (bug fix): Prevent potential consistency issues when a node
is stopped and restarted in rapid succession.
  • Loading branch information
tbg committed Mar 2, 2018
1 parent dc02249 commit de32502
Show file tree
Hide file tree
Showing 7 changed files with 716 additions and 605 deletions.
Loading

0 comments on commit de32502

Please sign in to comment.