HBASE-3042 Use LO4J in SequenceFileLogReader

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1001928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-09-27 22:09:51 +00:00
parent 823cfeac9c
commit aff46efe9e
2 changed files with 6 additions and 2 deletions

View File

@ -547,6 +547,8 @@ Release 0.21.0 - Unreleased
unknown server -- telling it to STOP_REGIONSERVER.
HBASE-3039 Stuck in regionsInTransition because rebalance came in at same
time as a split
HBASE-3042 Use LO4J in SequenceFileLogReader
(Nicolas Spiegelberg via Stack)
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable

View File

@ -26,14 +26,16 @@ 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;
import org.apache.hadoop.fs.Path;
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.
@ -193,7 +195,7 @@ public class SequenceFileLogReader implements HLog.Reader {
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