Class NoOpLogCloser
java.lang.Object
org.apache.accumulo.server.manager.recovery.NoOpLogCloser
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
close
(AccumuloConfiguration conf, org.apache.hadoop.conf.Configuration hadoopConf, VolumeManager fs, org.apache.hadoop.fs.Path path) Attempts to properly close a WALog
-
Constructor Details
-
NoOpLogCloser
public NoOpLogCloser()
-
-
Method Details
-
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
-