hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nspiegelb...@apache.org
Subject svn commit: r1181385 - /hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
Date Tue, 11 Oct 2011 02:04:07 GMT
Author: nspiegelberg
Date: Tue Oct 11 02:04:06 2011
New Revision: 1181385

URL: http://svn.apache.org/viewvc?rev=1181385&view=rev
Log:
HBASE-2889 : Fixed minor Log4j problem

Modified:
    hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java

Modified: hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java?rev=1181385&r1=1181384&r2=1181385&view=diff
==============================================================================
--- hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
(original)
+++ hbase/branches/0.89/src/main/java/org/apache/hadoop/hbase/regionserver/wal/SequenceFileLogReader.java
Tue Oct 11 02:04:06 2011
@@ -25,6 +25,8 @@ import java.lang.Class;
 import java.lang.reflect.Constructor;
 import java.lang.reflect.Field;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.FSDataInputStream;
 import org.apache.hadoop.fs.FileSystem;
@@ -32,9 +34,9 @@ import org.apache.hadoop.fs.Path;
 import org.apache.hadoop.hbase.regionserver.wal.HLog;
 import org.apache.hadoop.hbase.regionserver.wal.WALEdit;
 import org.apache.hadoop.io.SequenceFile;
-import org.mortbay.log.Log;
 
 public class SequenceFileLogReader implements HLog.Reader {
+  private static final Log LOG = LogFactory.getLog(SequenceFileLogReader.class);
 
   /**
    * Hack just to set the correct file length up in SequenceFile.Reader.
@@ -165,7 +167,7 @@ public class SequenceFileLogReader imple
     try {
       pos = getPosition();
     } catch (IOException e) {
-      Log.warn("Failed getting position to add to throw", e);
+      LOG.warn("Failed getting position to add to throw", e);
     }
 
     // See what SequenceFile.Reader thinks is the end of the file



Mime
View raw message