org.apache.hadoop.hbase.snapshot
Class CopyRecoveredEditsTask

java.lang.Object
  extended by org.apache.hadoop.hbase.snapshot.SnapshotTask
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.snapshot.SnapshotTask
errorMonitor, snapshot
 
Constructor Summary
CopyRecoveredEditsTask(HBaseProtos.SnapshotDescription snapshot, ForeignExceptionDispatcher monitor, org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path regionDir, org.apache.hadoop.fs.Path snapshotRegionDir)
           
 
Method Summary
 Void call()
           
 
Methods inherited from class org.apache.hadoop.hbase.snapshot.SnapshotTask
getException, hasException, rethrowException, snapshotFailure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 taken
monitor - error monitor for the snapshot
fs - FileSystem where the snapshot is being taken
regionDir - directory for the region to examine for edits
snapshotRegionDir - directory for the region in the snapshot
Method Detail

call

public Void call()
          throws IOException
Throws:
IOException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.