HBASE-6823. [WINDOWS] TestSplitTransaction fails due to the Log handle not released by a call to DaughterOpener.start()
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1407289 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
85d0b8f3bc
commit
227dfa8bd4
|
@ -248,12 +248,9 @@ public class TestSplitTransaction {
|
||||||
assertTrue(Bytes.equals(GOOD_SPLIT_ROW, daughters.getFirst().getEndKey()));
|
assertTrue(Bytes.equals(GOOD_SPLIT_ROW, daughters.getFirst().getEndKey()));
|
||||||
assertTrue(Bytes.equals(daughters.getSecond().getStartKey(), GOOD_SPLIT_ROW));
|
assertTrue(Bytes.equals(daughters.getSecond().getStartKey(), GOOD_SPLIT_ROW));
|
||||||
assertTrue(Bytes.equals(this.parent.getEndKey(), daughters.getSecond().getEndKey()));
|
assertTrue(Bytes.equals(this.parent.getEndKey(), daughters.getSecond().getEndKey()));
|
||||||
// Count rows.
|
// Count rows. daughters are already open
|
||||||
int daughtersRowCount = 0;
|
int daughtersRowCount = 0;
|
||||||
for (HRegion r: daughters) {
|
for (HRegion openRegion: daughters) {
|
||||||
// Open so can count its content.
|
|
||||||
HRegion openRegion = HRegion.openHRegion(this.testdir, r.getRegionInfo(),
|
|
||||||
r.getTableDesc(), r.getLog(), TEST_UTIL.getConfiguration());
|
|
||||||
try {
|
try {
|
||||||
int count = countRows(openRegion);
|
int count = countRows(openRegion);
|
||||||
assertTrue(count > 0 && count != rowcount);
|
assertTrue(count > 0 && count != rowcount);
|
||||||
|
@ -303,12 +300,9 @@ public class TestSplitTransaction {
|
||||||
// Now retry the split but do not throw an exception this time.
|
// Now retry the split but do not throw an exception this time.
|
||||||
assertTrue(st.prepare());
|
assertTrue(st.prepare());
|
||||||
PairOfSameType<HRegion> daughters = st.execute(mockServer, null);
|
PairOfSameType<HRegion> daughters = st.execute(mockServer, null);
|
||||||
// Count rows.
|
// Count rows. daughters are already open
|
||||||
int daughtersRowCount = 0;
|
int daughtersRowCount = 0;
|
||||||
for (HRegion r: daughters) {
|
for (HRegion openRegion: daughters) {
|
||||||
// Open so can count its content.
|
|
||||||
HRegion openRegion = HRegion.openHRegion(this.testdir, r.getRegionInfo(),
|
|
||||||
r.getTableDesc(), r.getLog(), TEST_UTIL.getConfiguration());
|
|
||||||
try {
|
try {
|
||||||
int count = countRows(openRegion);
|
int count = countRows(openRegion);
|
||||||
assertTrue(count > 0 && count != rowcount);
|
assertTrue(count > 0 && count != rowcount);
|
||||||
|
|
Loading…
Reference in New Issue