Class NoOpLogCloser

  • All Implemented Interfaces:
    LogCloser

    public class NoOpLogCloser
    extends Object
    implements LogCloser
    HadoopLogCloser recovers leases in DistributedFileSystem implementations and does nothing in local FileSystem implementations. For other implementations HadoopLogCloser throws an exception. However, Accumulo could be used with other Hadoop compatible FileSystem implementations that do not support lease recovery and we should not throw an exception in this case. This LogCloser implementation supports that case. WARNING: USE AT YOUR OWN RISK! When using this class as the LogCloser, it's possible that WALog recovery will not work if the file system implementation needs some type of recovery to occur for files that were being written to, but not properly closed. To use this class, set the Property Property.MANAGER_WAL_CLOSER_IMPLEMENTATION to the full name of this class.
    • Constructor Detail

      • NoOpLogCloser

        public NoOpLogCloser()
    • Method Detail

      • close

        public long close​(AccumuloConfiguration conf,
                          org.apache.hadoop.conf.Configuration hadoopConf,
                          VolumeManager fs,
                          org.apache.hadoop.fs.Path path)
                   throws IOException
        Description copied from interface: LogCloser
        Attempts to properly close a WALog
        Specified by:
        close in interface LogCloser
        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