You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@aurora.apache.org by "Bill Farner (JIRA)" <ji...@apache.org> on 2015/02/06 02:11:34 UTC
[jira] [Created] (AURORA-1108) The scheduler synchronously writes a
backup while writing a snapshot to the replicated log
Bill Farner created AURORA-1108:
-----------------------------------
Summary: 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
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)