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:
Enis Soztutar 2012-11-08 22:11:10 +00:00
parent 85d0b8f3bc
commit 227dfa8bd4
1 changed files with 4 additions and 10 deletions

View File

@ -248,12 +248,9 @@ public class TestSplitTransaction {
assertTrue(Bytes.equals(GOOD_SPLIT_ROW, daughters.getFirst().getEndKey()));
assertTrue(Bytes.equals(daughters.getSecond().getStartKey(), GOOD_SPLIT_ROW));
assertTrue(Bytes.equals(this.parent.getEndKey(), daughters.getSecond().getEndKey()));
// Count rows.
// Count rows. daughters are already open
int daughtersRowCount = 0;
for (HRegion r: daughters) {
// Open so can count its content.
HRegion openRegion = HRegion.openHRegion(this.testdir, r.getRegionInfo(),
r.getTableDesc(), r.getLog(), TEST_UTIL.getConfiguration());
for (HRegion openRegion: daughters) {
try {
int count = countRows(openRegion);
assertTrue(count > 0 && count != rowcount);
@ -303,12 +300,9 @@ public class TestSplitTransaction {
// Now retry the split but do not throw an exception this time.
assertTrue(st.prepare());
PairOfSameType<HRegion> daughters = st.execute(mockServer, null);
// Count rows.
// Count rows. daughters are already open
int daughtersRowCount = 0;
for (HRegion r: daughters) {
// Open so can count its content.
HRegion openRegion = HRegion.openHRegion(this.testdir, r.getRegionInfo(),
r.getTableDesc(), r.getLog(), TEST_UTIL.getConfiguration());
for (HRegion openRegion: daughters) {
try {
int count = countRows(openRegion);
assertTrue(count > 0 && count != rowcount);