Tabnine Logo
org.apache.hadoop.hbase.procedure2.store.wal
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.hadoop.hbase.procedure2.store.wal

Best Java code snippets using org.apache.hadoop.hbase.procedure2.store.wal (Showing top 20 results out of 315)

origin: apache/hbase

public void finish() throws IOException {
 // notify the loader about the max proc ID
 loader.setMaxProcId(maxProcId);
 // build the procedure execution tree. When building we will verify that whether a procedure is
 // valid.
 WALProcedureTree tree = WALProcedureTree.build(procedureMap.getProcedures());
 loader.load(tree.getValidProcs());
 loader.handleCorrupted(tree.getCorruptedProcs());
}
origin: apache/hbase

 @Override
 public Procedure<?> next() throws IOException {
  checkNext();
  Procedure<?> proc = current.getProc();
  moveToNext();
  return proc;
 }
}
origin: apache/hbase

 private boolean isRequired(long procId) {
  return !isDeleted(procId) && !procedureMap.contains(procId);
 }
}
origin: apache/hbase

@Override
protected int doWork() {
 try {
  setUpProcedureStore();
  writeWals();
  storeRestart(new LoadCounter());
  return EXIT_SUCCESS;
 } catch (IOException e) {
  e.printStackTrace();
  return EXIT_FAILURE;
 } finally {
  tearDownProcedureStore();
 }
}
origin: apache/hbase

public static WALProcedureStore createWalStore(final Configuration conf, final Path dir)
  throws IOException {
 return new WALProcedureStore(conf, dir, null, new WALProcedureStore.LeaseRecovery() {
  @Override
  public void recoverFileLease(FileSystem fs, Path path) throws IOException {
   // no-op
  }
 });
}
origin: apache/hbase

public static void writeInsert(ByteSlot slot, Procedure<?> proc)
  throws IOException {
 writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INIT, proc, null);
}
origin: apache/hbase

@Override
public boolean equals(Object o) {
 if (this == o) return true;
 if (!(o instanceof ProcedureWALFile)) return false;
 return compareTo((ProcedureWALFile)o) == 0;
}
origin: apache/hbase

private void deleteEntry(final long procId) {
 LOG.trace("delete entry {}", procId);
 maxProcId = Math.max(maxProcId, procId);
 localProcedureMap.remove(procId);
 assert !procedureMap.contains(procId);
 setDeletedIfPartial(tracker, procId);
 setDeletedIfPartial(localTracker, procId);
}
origin: apache/hbase

private TestProcedure createProc(long procId, long parentProcId) {
 TestProcedure proc = new TestProcedure();
 proc.setProcId(procId);
 if (parentProcId != Procedure.NO_PROC_ID) {
  proc.setParentProcId(parentProcId);
 }
 return proc;
}
origin: apache/hbase

@Override
public void skipNext() {
 checkNext();
 moveToNext();
}
origin: apache/hbase

@Override
public void addOptions() {
 addOption(NUM_THREADS_OPTION);
 addOption(NUM_PROCS_OPTION);
 addOption(NUM_WALS_OPTION);
 addOption(SYNC_OPTION);
 addOption(STATE_SIZE_OPTION);
}
origin: apache/hbase

@Override
protected void addOptions() {
 addOption(NUM_PROCS_OPTION);
 addOption(UPDATES_PER_PROC_OPTION);
 addOption(DELETE_PROCS_FRACTION_OPTION);
 addOption(NUM_WALS_OPTION);
 addOption(STATE_SIZE_OPTION);
}
origin: apache/hbase

public TestSequentialProcedure() {
 setProcId(++seqid);
}
origin: apache/hbase

public ProcedureIterator getCorruptedProcs() {
 return new Iter(corruptedProcs);
}
origin: apache/hbase

@Override
public boolean isNextFinished() {
 checkNext();
 return isFinished(current.proto);
}
origin: apache/hbase

public Iter(List<ProtoAndProc> procs) {
 this.procs = procs;
 reset();
}
origin: apache/hbase

private WALProcedureStore createWALProcedureStore(Configuration conf) throws IOException {
 return new WALProcedureStore(conf, new WALProcedureStore.LeaseRecovery() {
  @Override
  public void recoverFileLease(FileSystem fs, Path path) throws IOException {
   // no-op
  }
 });
}
origin: apache/hbase

public static void writeUpdate(ByteSlot slot, Procedure<?> proc)
  throws IOException {
 writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_UPDATE, proc, null);
}
origin: apache/hbase

public ProcedureIterator getValidProcs() {
 return new Iter(validProcs);
}
origin: apache/hbase

public static void writeInsert(ByteSlot slot, Procedure<?> proc, Procedure<?>[] subprocs)
  throws IOException {
 writeEntry(slot, ProcedureWALEntry.Type.PROCEDURE_WAL_INSERT, proc, subprocs);
}
org.apache.hadoop.hbase.procedure2.store.wal

Most used classes

  • WALProcedureStore
    WAL implementation of the ProcedureStore. When starting, the upper layer will first call #start(int)
  • ProcedureWALFile
    Describes a WAL File
  • CorruptedWALProcedureStoreException
    Thrown when a procedure WAL is corrupted
  • ProcedureWALFormat$InvalidWALDataException
  • ProcedureWALFormat$Loader
  • ProcedureWALFormatReader,
  • WALProcedureStore$LeaseRecovery,
  • WALProcedureStore$SyncMetrics,
  • ProcedureWALFormatReader$Entry,
  • ProcedureWALFormatReader$EntryIterator,
  • ProcedureWALFormatReader$WalProcedureMap,
  • ProcedureWALLoaderPerformanceEvaluation$LoadCounter,
  • ProcedureWALLoaderPerformanceEvaluation,
  • ProcedureWALPerformanceEvaluation$NoSyncWalProcedureStore,
  • ProcedureWALPerformanceEvaluation$Worker,
  • ProcedureWALPerformanceEvaluation,
  • ProcedureWALPrettyPrinter,
  • TestStressWALProcedureStore,
  • TestWALProcedureStore$TestSequentialProcedure
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now