hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li...@apache.org
Subject svn commit: r1525274 - /hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java
Date Sat, 21 Sep 2013 18:18:19 GMT
Author: liyin
Date: Sat Sep 21 18:18:18 2013
New Revision: 1525274

URL: http://svn.apache.org/r1525274
Log:
[master] Add one more verification step in testLogCleaningWithArchivingToHourlyDir()

Author: fan

Summary: Verify test legacy old file is not removed at a wrong time.

Test Plan: Unit test

Reviewers: liyintang

Reviewed By: liyintang

Differential Revision: https://phabricator.fb.com/D979209

Task ID: 2851371

Modified:
    hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java

Modified: hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java?rev=1525274&r1=1525273&r2=1525274&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java
(original)
+++ hbase/branches/0.89-fb/src/test/java/org/apache/hadoop/hbase/master/TestOldLogsCleaner.java
Sat Sep 21 18:18:18 2013
@@ -169,6 +169,9 @@ public class TestOldLogsCleaner {
     // We should still see 3 newer dirs and an legacy one
     assertEquals(4, fs.listStatus(oldLogDir).length);
 
+    // Verify file "123.456" still exists
+    assertEquals(1, fs.listStatus(legacyDir).length);
+
     Thread.sleep(1000);
 
     // Update TTL configuration to delete all logs



Mime
View raw message