aboutsummaryrefslogtreecommitdiff
path: root/contrib/storage-hbase/src
diff options
context:
space:
mode:
authorVlad Rozov <vrozov@apache.org>2018-02-15 19:25:21 -0800
committerVitalii Diravka <vitalii.diravka@gmail.com>2018-02-19 08:57:05 +0000
commit894c0f58ecff11ce53ede696f2a82308ca8333d4 (patch)
tree4d08cd7065b9deb1e7a4f0d9b811f1ac65cdd600 /contrib/storage-hbase/src
parent24a7acd440d29b7340a378306f339e1307892208 (diff)
DRILL-6164: Heap memory leak during parquet scan and OOM
closes #1122
Diffstat (limited to 'contrib/storage-hbase/src')
-rw-r--r--contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseScanBatchCreator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseScanBatchCreator.java b/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseScanBatchCreator.java
index ff9a4e460..87c64ac9e 100644
--- a/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseScanBatchCreator.java
+++ b/contrib/storage-hbase/src/main/java/org/apache/drill/exec/store/hbase/HBaseScanBatchCreator.java
@@ -17,6 +17,7 @@
*/
package org.apache.drill.exec.store.hbase;
+import java.util.LinkedList;
import java.util.List;
import org.apache.drill.common.exceptions.ExecutionSetupException;
@@ -29,14 +30,13 @@ import org.apache.drill.exec.record.RecordBatch;
import org.apache.drill.exec.store.RecordReader;
import com.google.common.base.Preconditions;
-import com.google.common.collect.Lists;
public class HBaseScanBatchCreator implements BatchCreator<HBaseSubScan> {
@Override
public ScanBatch getBatch(ExecutorFragmentContext context, HBaseSubScan subScan, List<RecordBatch> children)
throws ExecutionSetupException {
Preconditions.checkArgument(children.isEmpty());
- List<RecordReader> readers = Lists.newArrayList();
+ List<RecordReader> readers = new LinkedList<>();
List<SchemaPath> columns = null;
for(HBaseSubScan.HBaseSubScanSpec scanSpec : subScan.getRegionScanSpecList()){
try {