@InterfaceAudience.Private @InterfaceStability.Evolving public class CopyRecoveredEditsTask extends SnapshotTask
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.
errorMonitor, snapshot
Constructor and Description |
---|
CopyRecoveredEditsTask(HBaseProtos.SnapshotDescription snapshot,
ForeignExceptionDispatcher monitor,
org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path regionDir,
org.apache.hadoop.fs.Path snapshotRegionDir) |
Modifier and Type | Method and Description |
---|---|
Void |
call() |
getException, hasException, rethrowException, snapshotFailure
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)
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 snapshotpublic Void call() throws IOException
IOException
Copyright © 2013 The Apache Software Foundation. All rights reserved.