Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-43

Reading from beginning() to ending() of a replicated log should have "safe" semantics

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: java api, replicated log
    • Labels:

      Description

      Right now it is possible to that reading from beginning() to ending() of a local replica will throw an exception because the local replica may have unlearned actions in the log. Creating a local writer first is only a partial solution because there is still a race after the writer has it's underlying coordinator elected but before calling ending() where another writer might (get elected and) append other actions to the log. It seems like a good solution is one where beginning() and ending() actually return special Log::Position objects that can be used to determine how to treat the semantics of Reader::read. It might also make sense to have a Replica::readFrom and Replica::readTo to help deal with this problem.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              benjaminhindman Benjamin Hindman
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: