HBASE-21551 Memory leak when use scan with STREAM at server side - (addendum)
This commit is contained in:
parent
3b854859f6
commit
67ab8b888f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue