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:
parent
823cfeac9c
commit
aff46efe9e
|
@ -547,6 +547,8 @@ Release 0.21.0 - Unreleased
|
||||||
unknown server -- telling it to STOP_REGIONSERVER.
|
unknown server -- telling it to STOP_REGIONSERVER.
|
||||||
HBASE-3039 Stuck in regionsInTransition because rebalance came in at same
|
HBASE-3039 Stuck in regionsInTransition because rebalance came in at same
|
||||||
time as a split
|
time as a split
|
||||||
|
HBASE-3042 Use LO4J in SequenceFileLogReader
|
||||||
|
(Nicolas Spiegelberg via Stack)
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -26,14 +26,16 @@ import java.lang.Class;
|
||||||
import java.lang.reflect.Constructor;
|
import java.lang.reflect.Constructor;
|
||||||
import java.lang.reflect.Field;
|
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.conf.Configuration;
|
||||||
import org.apache.hadoop.fs.FSDataInputStream;
|
import org.apache.hadoop.fs.FSDataInputStream;
|
||||||
import org.apache.hadoop.fs.FileSystem;
|
import org.apache.hadoop.fs.FileSystem;
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.io.SequenceFile;
|
import org.apache.hadoop.io.SequenceFile;
|
||||||
import org.mortbay.log.Log;
|
|
||||||
|
|
||||||
public class SequenceFileLogReader implements HLog.Reader {
|
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.
|
* Hack just to set the correct file length up in SequenceFile.Reader.
|
||||||
|
@ -193,7 +195,7 @@ public class SequenceFileLogReader implements HLog.Reader {
|
||||||
try {
|
try {
|
||||||
pos = getPosition();
|
pos = getPosition();
|
||||||
} catch (IOException e) {
|
} 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
|
// See what SequenceFile.Reader thinks is the end of the file
|
||||||
|
|
Loading…
Reference in New Issue