You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Hindman (Created) (JIRA)" <ji...@apache.org> on 2011/10/25 03:30:32 UTC

[jira] [Created] (MESOS-43) Reading from beginning() to ending() of a replicated log should have "safe" semantics

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

                 Key: MESOS-43
                 URL: https://issues.apache.org/jira/browse/MESOS-43
             Project: Mesos
          Issue Type: Improvement
            Reporter: Benjamin Hindman
            Assignee: Benjamin Hindman
            Priority: Minor


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira