From b256284f5186c1d65be289ff5f77f1f1f9b1da10 Mon Sep 17 00:00:00 2001 From: larsh Date: Sat, 6 Jul 2013 08:55:55 +0000 Subject: [PATCH] HBASE-8809 test fix git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1500232 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java index f4f3b34222b..758ed86dbc0 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestKeepDeletes.java @@ -789,7 +789,8 @@ public class TestKeepDeletes extends HBaseTestCase { private int countDeleteMarkers(HRegion region) throws IOException { Scan s = new Scan(); s.setRaw(true); - s.setMaxVersions(); + // use max versions from the store(s) + s.setMaxVersions(region.getStores().values().iterator().next().getScanInfo().getMaxVersions()); InternalScanner scan = region.getScanner(s); List kvs = new ArrayList(); int res = 0;