Skip to content

servers should never remove entries unless they conflict with the leader's log #4

Description

@ongardie

I don't really understand what's going on with logger.remove_uncommitted_logs, but that basically shouldn't exist. Those servers made a promise to store entries to some prior leader. It's only safe to break that promise if they know those entries were never marked committed. Remember the basic safety property is: entries are marked committed => those entries will exist on every future leader. The contrapositive is: an entry does not exist on a future leader => the entry was not marked committed. So the only time we know it's safe to discard entries is if we know they conflict with the current leader's log.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions