You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@asterixdb.apache.org by "Murtadha Hubail (JIRA)" <ji...@apache.org> on 2018/10/19 14:32:00 UTC

[jira] [Resolved] (ASTERIXDB-2444) Potential data loss due to clock drift

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

Murtadha Hubail resolved ASTERIXDB-2444.
----------------------------------------
    Resolution: Fixed

> Potential data loss due to clock drift
> --------------------------------------
>
>                 Key: ASTERIXDB-2444
>                 URL: https://issues.apache.org/jira/browse/ASTERIXDB-2444
>             Project: Apache AsterixDB
>          Issue Type: Bug
>          Components: STO - Storage
>    Affects Versions: 0.9.4
>            Reporter: Murtadha Hubail
>            Assignee: Murtadha Hubail
>            Priority: Major
>             Fix For: 0.9.5
>
>
> Currently we use a timestamp based on the current system time to sort the index files to identify the order in which the index components should be searched. If the system clock is changed to a time earlier than the latest index component time and a new component written, it will result in sorting the components in a wrong order. This issue can also be encountered if a current master replica has a system time that is ahead of another replica. If the current master fails and that replica is promoted, it might generate new components with an earlier timestamp. The same issue is applicable in component ids.
> Proposed Fix:
> Avoid using the system clock timestamp and use a simple monotonically increasing sequencer.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)