[
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)