Class NoOpLogCloser
- java.lang.Object
-
- org.apache.accumulo.server.manager.recovery.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 implementationsHadoopLogCloser
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 PropertyProperty.MANAGER_WAL_CLOSER_IMPLEMENTATION
to the full name of this class.
-
-
Constructor Summary
Constructors Constructor Description NoOpLogCloser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
close(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf, VolumeManager fs, org.apache.hadoop.fs.Path path)
Attempts to properly close a WALog
-
-
-
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 interfaceLogCloser
- Parameters:
conf
- AccumuloConfigurationhadoopConf
- Hadoop configurationfs
- VolumeManagerpath
- WALog file path- Returns:
- amount of time to wait before retrying, 0 if succeeded
- Throws:
IOException
- exception closing walog
-
-