aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Farner (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AURORA-1108) The scheduler synchronously writes a backup while writing a snapshot to the replicated log
Date Fri, 06 Feb 2015 01:11:34 GMT
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)

Mime
View raw message