Interface LogCloser

  • All Known Implementing Classes:
    HadoopLogCloser, HadoopLogCloser, NoOpLogCloser

    public interface LogCloser
    Object that is used by the RecoveryManager to properly close WALogs that were being written to and were not properly closed (TabletServer died, for example).
    • Method Detail

      • close

        long close​(AccumuloConfiguration conf,
                   org.apache.hadoop.conf.Configuration hadoopConf,
                   VolumeManager fs,
                   org.apache.hadoop.fs.Path path)
            throws IOException
        Attempts to properly close a WALog
        Parameters:
        conf - AccumuloConfiguration
        hadoopConf - Hadoop configuration
        fs - VolumeManager
        path - WALog file path
        Returns:
        amount of time to wait before retrying, 0 if succeeded
        Throws:
        IOException - exception closing walog