gpt4 book ai didi

org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.getCorruptedLogs()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 05:19:05 26 4
gpt4 key购买 nike

本文整理了Java中org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore.getCorruptedLogs()方法的一些代码示例,展示了WALProcedureStore.getCorruptedLogs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WALProcedureStore.getCorruptedLogs()方法的具体详情如下:
包路径:org.apache.hadoop.hbase.procedure2.store.wal.WALProcedureStore
类名称:WALProcedureStore
方法名:getCorruptedLogs

WALProcedureStore.getCorruptedLogs介绍

暂无

代码示例

代码示例来源:origin: apache/hbase

@Test
public void testCorruptedEntries() throws Exception {
 // Insert something
 for (int i = 0; i < 100; ++i) {
  procStore.insert(new TestSequentialProcedure(), null);
 }
 // Stop the store
 procStore.stop(false);
 // Remove some byte from the log
 // (enough to cut the trailer and corrupt some entries)
 FileStatus[] logs = fs.listStatus(logDir);
 assertEquals(1, logs.length);
 corruptLog(logs[0], 1823);
 LoadCounter loader = new LoadCounter();
 storeRestart(loader);
 assertTrue(procStore.getCorruptedLogs() != null);
 assertEquals(1, procStore.getCorruptedLogs().size());
 assertEquals(87, loader.getLoadedCount());
 assertEquals(0, loader.getCorruptedCount());
}

代码示例来源:origin: apache/hbase

long millisFromLastRoll = walStore.getMillisFromLastRoll();
ArrayList<ProcedureWALFile> procedureWALFiles = walStore.getActiveLogs();
Set<ProcedureWALFile> corruptedWALFiles = walStore.getCorruptedLogs();
List<Procedure<MasterProcedureEnv>> procedures = procExecutor.getProcedures();
Collections.sort(procedures, new Comparator<Procedure>() {

代码示例来源:origin: com.aliyun.hbase/alihbase-procedure

@Test
public void testCorruptedEntries() throws Exception {
 // Insert something
 for (int i = 0; i < 100; ++i) {
  procStore.insert(new TestSequentialProcedure(), null);
 }
 // Stop the store
 procStore.stop(false);
 // Remove some byte from the log
 // (enough to cut the trailer and corrupt some entries)
 FileStatus[] logs = fs.listStatus(logDir);
 assertEquals(1, logs.length);
 corruptLog(logs[0], 1823);
 LoadCounter loader = new LoadCounter();
 storeRestart(loader);
 assertTrue(procStore.getCorruptedLogs() != null);
 assertEquals(1, procStore.getCorruptedLogs().size());
 assertEquals(87, loader.getLoadedCount());
 assertEquals(0, loader.getCorruptedCount());
}

代码示例来源:origin: org.apache.hbase/hbase-procedure

@Test
public void testCorruptedEntries() throws Exception {
 // Insert something
 for (int i = 0; i < 100; ++i) {
  procStore.insert(new TestSequentialProcedure(), null);
 }
 // Stop the store
 procStore.stop(false);
 // Remove some byte from the log
 // (enough to cut the trailer and corrupt some entries)
 FileStatus[] logs = fs.listStatus(logDir);
 assertEquals(1, logs.length);
 corruptLog(logs[0], 1823);
 LoadCounter loader = new LoadCounter();
 storeRestart(loader);
 assertTrue(procStore.getCorruptedLogs() != null);
 assertEquals(1, procStore.getCorruptedLogs().size());
 assertEquals(87, loader.getLoadedCount());
 assertEquals(0, loader.getCorruptedCount());
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com