Package org.apache.hadoop.hbase.snapshot

Examples of org.apache.hadoop.hbase.snapshot.CopyRecoveredEditsTask.call()


      fs.createNewFile(empty);

      CopyRecoveredEditsTask task = new CopyRecoveredEditsTask(snapshot, monitor, fs, regionDir,
          snapshotRegionDir);
      CopyRecoveredEditsTask taskSpy = Mockito.spy(task);
      taskSpy.call();

      Path snapshotEdits = HLogUtil.getRegionDirRecoveredEditsDir(snapshotRegionDir);
      FileStatus[] snapshotEditFiles = FSUtils.listStatus(fs, snapshotEdits);
      assertEquals("Got wrong number of files in the snapshot edits", 1, snapshotEditFiles.length);
      FileStatus file = snapshotEditFiles[0];
View Full Code Here


      Path regionEdits = HLogUtil.getRegionDirRecoveredEditsDir(regionDir);
      assertFalse("Edits dir exists already - it shouldn't", fs.exists(regionEdits));

      CopyRecoveredEditsTask task = new CopyRecoveredEditsTask(snapshot, monitor, fs, regionDir,
          snapshotRegionDir);
      task.call();
    } finally {
      // cleanup the working directory
      FSUtils.delete(fs, regionDir, true);
      FSUtils.delete(fs, workingDir, true);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.