Interface LogCloser
-
- All Known Implementing Classes:
HadoopLogCloser,NoOpLogCloser
public interface LogCloserObject 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longclose(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
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- AccumuloConfigurationhadoopConf- Hadoop configurationfs- VolumeManagerpath- WALog file path- Returns:
- amount of time to wait before retrying, 0 if succeeded
- Throws:
IOException- exception closing walog
-
-