You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kudu.apache.org by "Mike Percy (JIRA)" <ji...@apache.org> on 2016/02/26 13:09:18 UTC

[jira] [Updated] (KUDU-798) Proper safe time advancement by leaders and replicas

     [ https://issues.apache.org/jira/browse/KUDU-798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Percy updated KUDU-798:
----------------------------
    Parent: KUDU-430

> Proper safe time advancement by leaders and replicas
> ----------------------------------------------------
>
>                 Key: KUDU-798
>                 URL: https://issues.apache.org/jira/browse/KUDU-798
>             Project: Kudu
>          Issue Type: Sub-task
>          Components: consensus, tserver
>    Affects Versions: M5
>            Reporter: David Alves
>            Assignee: David Alves
>            Priority: Critical
>         Attachments: log.txt
>
>
> Safe time is the time after which replicas can serve snapshot reads.
> Leaders should only advance the safe time as they commit an operation in their own term (the initial safe time should be the time of that initial operation) and replicas should only advance the safe time based on what the leader says.
> If this is not the case then replicas can write to replica A (leader), get back 10 as a write timestamp and read from replica B which still hasn't replicated it and not see its own write. This can even happen while reading from just leaders if B was elected but hadn't yet applied all the previous writes locally.
> The attached log provides an example of the latter case



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)