From 6febe4551ade8804344f40ba71d4ff20a5a8fa1b Mon Sep 17 00:00:00 2001 From: Zhihong Yu Date: Fri, 22 Feb 2013 17:10:52 +0000 Subject: [PATCH] HBASE-7901 TestStore::testDeleteExpiredStoreFiles has a hidden issue (Sergey) git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1449138 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/hadoop/hbase/regionserver/TestStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStore.java b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStore.java index 210a90321fd..ebabf2f855f 100644 --- a/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStore.java +++ b/hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestStore.java @@ -228,8 +228,8 @@ public class TestStore extends TestCase { // the first is expired normally. // If not the first compaction, there is another empty store file, assertEquals(Math.min(i, 2), cr.getFiles().size()); - for (int j = 0; i < cr.getFiles().size(); j++) { - assertTrue(cr.getFiles().get(j).getReader().getMaxTimestamp() < (System + for (int j = 0; j < cr.getFiles().size(); j++) { + assertTrue(cr.getFiles().get(j).getReader().getMaxTimestamp() < (edge .currentTimeMillis() - this.store.getScanInfo().getTtl())); } // Verify that the expired store file is compacted to an empty store file.