From 9c9beb79ef9060dd162c44257e41bfe77063fdd7 Mon Sep 17 00:00:00 2001 From: BELUGA BEHR Date: Wed, 27 Dec 2017 09:59:38 +0800 Subject: [PATCH] HBASE-19615 CompositeImmutableSegment ArrayList Instead of LinkedList Signed-off-by: Chia-Ping Tsai --- .../hadoop/hbase/regionserver/CompositeImmutableSegment.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java index 5e8a8b3f1b2..bf9ff13cba8 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompositeImmutableSegment.java @@ -20,7 +20,6 @@ package org.apache.hadoop.hbase.regionserver; import java.util.ArrayList; import java.util.Iterator; -import java.util.LinkedList; import java.util.List; import java.util.SortedSet; @@ -56,7 +55,7 @@ public class CompositeImmutableSegment extends ImmutableSegment { @VisibleForTesting @Override public List getAllSegments() { - return new LinkedList<>(segments); + return new ArrayList<>(segments); } @Override