org.apache.hadoop.hbase.snapshot
Class CopyRecoveredEditsTask
java.lang.Object
org.apache.hadoop.hbase.snapshot.SnapshotTask
org.apache.hadoop.hbase.snapshot.CopyRecoveredEditsTask
- All Implemented Interfaces:
- Callable<Void>, ForeignExceptionSnare
@InterfaceAudience.Private
@InterfaceStability.Evolving
public class CopyRecoveredEditsTask
- extends SnapshotTask
Copy over each of the files in a region's recovered.edits directory to the region's snapshot
directory.
This is a serial operation over each of the files in the recovered.edits directory and also
streams all the bytes to the client and then back to the filesystem, so the files being copied
should be small or it will (a) suck up a lot of bandwidth, and (b) take a long time.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyRecoveredEditsTask
public CopyRecoveredEditsTask(HBaseProtos.SnapshotDescription snapshot,
ForeignExceptionDispatcher monitor,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
org.apache.hadoop.fs.Path snapshotRegionDir)
- Parameters:
snapshot
- Snapshot being takenmonitor
- error monitor for the snapshotfs
- FileSystem
where the snapshot is being takenregionDir
- directory for the region to examine for editssnapshotRegionDir
- directory for the region in the snapshot
call
public Void call()
throws IOException
- Throws:
IOException
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.