aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maxim Khutornenko (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AURORA-1108) The scheduler synchronously writes a backup while writing a snapshot to the replicated log
Date Wed, 18 Feb 2015 17:55:11 GMT

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

Maxim Khutornenko reassigned AURORA-1108:
-----------------------------------------

    Assignee: Maxim Khutornenko

> The scheduler synchronously writes a backup while writing a snapshot to the replicated
log
> ------------------------------------------------------------------------------------------
>
>                 Key: AURORA-1108
>                 URL: https://issues.apache.org/jira/browse/AURORA-1108
>             Project: Aurora
>          Issue Type: Bug
>          Components: Reliability, Scheduler
>            Reporter: Bill Farner
>            Assignee: Maxim Khutornenko
>            Priority: Critical
>
> In the course of writing a snapshot to the replicated log, the scheduler may block while
writing a snapshot to the disk.  There is no need for this activity to be done synchronously,
and doing so causes the write lock to be unnecessarily held for an additional period of time.
> From StorageBackup.java:
> {code}
>     @Override
>     public Snapshot createSnapshot() {
>       Snapshot snapshot = delegate.createSnapshot();
>       if (clock.nowMillis() >= (lastBackupMs + backupIntervalMs)) {
>         save(snapshot);
>       }
>       return snapshot;
>     }
> {code}
> {{StorageBackup}} happens to be the unqualified binding to {{SnapshotStore<Snapshot>}}
that is used in {{LogStorage}}.



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

Mime
View raw message