HBASE-21551 Memory leak when use scan with STREAM at server side - (addendum)

This commit is contained in:
huzheng 2018-12-06 11:26:52 +08:00
parent e9b0d73793
commit 0b181af4ec
1 changed files with 6 additions and 6 deletions

View File

@ -47,9 +47,9 @@ import org.apache.hadoop.hbase.regionserver.ScannerContext.LimitScope;
import org.apache.hadoop.hbase.testclassification.MediumTests;
import org.apache.hadoop.hbase.testclassification.RegionServerTests;
import org.apache.hadoop.hbase.util.Bytes;
import org.junit.AfterClass;
import org.junit.After;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Test;
@ -74,8 +74,8 @@ public class TestSwitchToStreamRead {
private static HRegion REGION;
@BeforeClass
public static void setUp() throws IOException {
@Before
public void setUp() throws IOException {
UTIL.getConfiguration().setLong(StoreScanner.STORESCANNER_PREAD_MAX_BYTES, 2048);
StringBuilder sb = new StringBuilder(256);
for (int i = 0; i < 255; i++) {
@ -99,8 +99,8 @@ public class TestSwitchToStreamRead {
}
}
@AfterClass
public static void tearDown() throws IOException {
@After
public void tearDown() throws IOException {
REGION.close(true);
UTIL.cleanupTestDir();
}