accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [48/50] [abbrv] ACCUMULO-2574 Change closedTime into createdTime
Date Wed, 21 May 2014 02:00:07 GMT
http://git-wip-us.apache.org/repos/asf/accumulo/blob/b53bbf08/test/src/test/java/org/apache/accumulo/test/replication/StatusCombinerMacTest.java
----------------------------------------------------------------------
diff --git a/test/src/test/java/org/apache/accumulo/test/replication/StatusCombinerMacTest.java
b/test/src/test/java/org/apache/accumulo/test/replication/StatusCombinerMacTest.java
index c889e42..e264488 100644
--- a/test/src/test/java/org/apache/accumulo/test/replication/StatusCombinerMacTest.java
+++ b/test/src/test/java/org/apache/accumulo/test/replication/StatusCombinerMacTest.java
@@ -53,9 +53,10 @@ public class StatusCombinerMacTest extends SimpleMacIT {
     ReplicationTable.create(conn);
 
     BatchWriter bw = conn.createBatchWriter(ReplicationTable.NAME, new BatchWriterConfig());
+    long createTime = System.currentTimeMillis();
     try {
       Mutation m = new Mutation("file:/accumulo/wal/HW10447.local+56808/93cdc17e-7521-44fa-87b5-37f45bcb92d3");
-      StatusSection.add(m, new Text("1"), StatusUtil.newFileValue());
+      StatusSection.add(m, new Text("1"), StatusUtil.fileCreatedValue(createTime));
       bw.addMutation(m);
     } finally {
       bw.close();
@@ -63,7 +64,7 @@ public class StatusCombinerMacTest extends SimpleMacIT {
 
     Scanner s = conn.createScanner(ReplicationTable.NAME, new Authorizations());
     Entry<Key,Value> entry = Iterables.getOnlyElement(s);
-    Assert.assertEquals(entry.getValue(), StatusUtil.newFileValue());
+    Assert.assertEquals(StatusUtil.fileCreatedValue(createTime), entry.getValue());
 
     bw = conn.createBatchWriter(ReplicationTable.NAME, new BatchWriterConfig());
     try {

http://git-wip-us.apache.org/repos/asf/accumulo/blob/b53bbf08/test/src/test/resources/log4j.properties
----------------------------------------------------------------------
diff --git a/test/src/test/resources/log4j.properties b/test/src/test/resources/log4j.properties
index 9f991d1..5566a3b 100644
--- a/test/src/test/resources/log4j.properties
+++ b/test/src/test/resources/log4j.properties
@@ -39,6 +39,7 @@ log4j.logger.org.apache.accumulo.core.client.impl.ThriftScanner=INFO
 log4j.logger.org.apache.accumulo.fate.zookeeper.DistributedReadWriteLock=WARN
 log4j.logger.org.mortbay.log=WARN
 log4j.logger.org.apache.hadoop=WARN
+log4j.logger.org.apache.jasper=INFO
 log4j.logger.org.apache.hadoop.hdfs.server.namenode.FSNamesystem.audit=WARN
 log4j.logger.org.apache.hadoop.hdfs.server.datanode.DataNode.clienttrace=WARN
 log4j.logger.BlockStateChange=WARN
\ No newline at end of file


Mime
View raw message