HBASE-25341 Fix ErrorProne error which causes nightly to fail (#2718)

Signed-off-by: Guanghao Zhang <zghao@apache.org>
This commit is contained in:
Duo Zhang 2020-11-30 14:14:44 +08:00
parent e927fe88fb
commit d6d0a20247
1 changed files with 6 additions and 6 deletions

View File

@ -7210,7 +7210,8 @@ public class TestHRegion {
RegionInfoBuilder.newBuilder(tableName).setStartKey(a).setEndKey(c).build();
final TableDescriptor htd = TableDescriptorBuilder.newBuilder(tableName)
.setColumnFamily(ColumnFamilyDescriptorBuilder.of(fam1)).build();
region = HRegion.createHRegion(hri, TEST_UTIL.getDataTestDir(), conf, htd, TEST_UTIL.createWal(conf, TEST_UTIL.getDataTestDirOnTestFS(method + ".log"), hri));
region = HRegion.createHRegion(hri, TEST_UTIL.getDataTestDir(), conf, htd,
HBaseTestingUtility.createWal(conf, TEST_UTIL.getDataTestDirOnTestFS(method + ".log"), hri));
Mutation[] mutations = new Mutation[] {
new Put(a)
@ -7488,8 +7489,7 @@ public class TestHRegion {
});
}
} catch (Exception e) {
e.printStackTrace();
assertionError.set(new AssertionError(e.getMessage()));
assertionError.set(new AssertionError(e));
}
});
writerThread.start();
@ -7514,12 +7514,12 @@ public class TestHRegion {
assertEquals(2L, Bytes.toLong(result.getValue(fam1, q3)));
assertEquals("ab", Bytes.toString(result.getValue(fam1, q4)));
} else {
fail("the qualifier " + q1 + " should be " + v1 + " or " + v2 + ", but " + q1Value);
fail("the qualifier " + Bytes.toString(q1) + " should be " + v1 + " or " + v2 +
", but " + q1Value);
}
}
} catch (Exception e) {
e.printStackTrace();
assertionError.set(new AssertionError(e.getMessage()));
assertionError.set(new AssertionError(e));
} catch (AssertionError e) {
assertionError.set(e);
}