/** * To fix the empty REGIONINFO_QUALIFIER rows from hbase:meta <br> * @throws IOException */ public void fixEmptyMetaCells() throws IOException { if (shouldFixEmptyMetaCells() && !emptyRegionInfoQualifiers.isEmpty()) { LOG.info("Trying to fix empty REGIONINFO_QUALIFIER hbase:meta rows."); for (Result region : emptyRegionInfoQualifiers) { deleteMetaRegion(region.getRow()); errors.getErrorList().remove(ERROR_CODE.EMPTY_META_CELL); } emptyRegionInfoQualifiers.clear(); } }
public boolean hasUnDeletedQueues() { return errorReporter.getErrorList() .contains(HBaseFsck.ErrorReporter.ERROR_CODE.UNDELETED_REPLICATION_QUEUE); }
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() != errs) { int errCount = errors.getErrorList().size();
return true; int originalErrorsCount = errors.getErrorList().size(); Multimap<byte[], HbckInfo> regions = sc.calcCoverage(); SortedSet<byte[]> splits = sc.getSplits(); dumpSidelinedRegions(sidelinedRegions); return errors.getErrorList().size() == originalErrorsCount;
return errors.getErrorList().size();
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() != errs) { int errCount = errors.getErrorList().size();
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() != errs) { int errCount = errors.getErrorList().size();
return errors.getErrorList().size();
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() == errs) { LOG.info("No integrity errors. We are done with this phase. Glorious."); return 0; return errors.getErrorList().size();
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() == errs) { LOG.info("No integrity errors. We are done with this phase. Glorious."); return 0; return errors.getErrorList().size();
/** * To fix the empty REGIONINFO_QUALIFIER rows from hbase:meta <br> * @throws IOException */ public void fixEmptyMetaCells() throws IOException { if (shouldFixEmptyMetaCells() && !emptyRegionInfoQualifiers.isEmpty()) { LOG.info("Trying to fix empty REGIONINFO_QUALIFIER hbase:meta rows."); for (Result region : emptyRegionInfoQualifiers) { deleteMetaRegion(region.getRow()); errors.getErrorList().remove(ERROR_CODE.EMPTY_META_CELL); } emptyRegionInfoQualifiers.clear(); } }
public static boolean inconsistencyFound(HBaseFsck fsck) throws Exception { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); return (errs != null && !errs.isEmpty()); }
public static void assertNoErrors(HBaseFsck fsck) throws Exception { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); assertEquals(new ArrayList<ERROR_CODE>(), errs); }
public static void assertErrors(HBaseFsck fsck, ERROR_CODE[] expectedErrors) { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); Collections.sort(errs); List<ERROR_CODE> expErrs = Lists.newArrayList(expectedErrors); Collections.sort(expErrs); assertEquals(expErrs, errs); } }
return true; int originalErrorsCount = errors.getErrorList().size(); Multimap<byte[], HbckInfo> regions = sc.calcCoverage(); SortedSet<byte[]> splits = sc.getSplits(); dumpSidelinedRegions(sidelinedRegions); return errors.getErrorList().size() == originalErrorsCount;
return errors.getErrorList().size();
int errs = errors.getErrorList().size(); if (errors.getErrorList().size() == errs) { LOG.info("No integrity errors. We are done with this phase. Glorious."); return 0; return errors.getErrorList().size();
public static void assertNoErrors(HBaseFsck fsck) throws Exception { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); assertEquals(new ArrayList<ERROR_CODE>(), errs); }
public static boolean inconsistencyFound(HBaseFsck fsck) throws Exception { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); return (errs != null && !errs.isEmpty()); }
public static void assertErrors(HBaseFsck fsck, ERROR_CODE[] expectedErrors) { List<ERROR_CODE> errs = fsck.getErrors().getErrorList(); Collections.sort(errs); List<ERROR_CODE> expErrs = Lists.newArrayList(expectedErrors); Collections.sort(expErrs); assertEquals(expErrs, errs); } }