HBASE-7082 TestHFileCleaner#testHFileCleaning fails due to cleaner is reset

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1404722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
jxiang 2012-11-01 18:48:35 +00:00
parent 8cde506fb9
commit 5dfdc621f1
1 changed files with 2 additions and 0 deletions

View File

@ -95,6 +95,8 @@ public class TestHFileCleaner {
Configuration conf = UTIL.getConfiguration(); Configuration conf = UTIL.getConfiguration();
// set TTL // set TTL
long ttl = 2000; long ttl = 2000;
conf.set(HFileCleaner.MASTER_HFILE_CLEANER_PLUGINS,
"org.apache.hadoop.hbase.master.cleaner.TimeToLiveHFileCleaner");
conf.setLong(TimeToLiveHFileCleaner.TTL_CONF_KEY, ttl); conf.setLong(TimeToLiveHFileCleaner.TTL_CONF_KEY, ttl);
Server server = new DummyServer(); Server server = new DummyServer();
Path archivedHfileDir = new Path(UTIL.getDataTestDir(), HConstants.HFILE_ARCHIVE_DIRECTORY); Path archivedHfileDir = new Path(UTIL.getDataTestDir(), HConstants.HFILE_ARCHIVE_DIRECTORY);