HBASE-2918 SequenceFileLogWriter doesnt make it clear if there is no append by config or by missing lib/feature
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@991741 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1e70bfbb00
commit
081f97077b
|
@ -496,6 +496,8 @@ Release 0.21.0 - Unreleased
|
|||
HBASE-2948 bin/hbase shell broken (after hbase-2692)
|
||||
(Sebastian Bauer via Stack)
|
||||
HBASE-2954 Fix broken build caused by hbase-2692 commit
|
||||
HBASE-2918 SequenceFileLogWriter doesnt make it clear if there is no
|
||||
append by config or by missing lib/feature
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -91,7 +91,8 @@ public class SequenceFileLogWriter implements HLog.Writer {
|
|||
// Now do dirty work to see if syncFs is available.
|
||||
// Test if syncfs is available.
|
||||
Method m = null;
|
||||
if (conf.getBoolean("dfs.support.append", false)) {
|
||||
boolean append = conf.getBoolean("dfs.support.append", false);
|
||||
if (append) {
|
||||
try {
|
||||
// function pointer to writer.syncFs()
|
||||
m = this.writer.getClass().getMethod("syncFs", new Class<?> []{});
|
||||
|
@ -103,7 +104,8 @@ public class SequenceFileLogWriter implements HLog.Writer {
|
|||
}
|
||||
this.syncFs = m;
|
||||
LOG.info((this.syncFs != null)?
|
||||
"Using syncFs -- HDFS-200": "syncFs -- HDFS-200 -- not available");
|
||||
"Using syncFs -- HDFS-200":
|
||||
("syncFs -- HDFS-200 -- not available, dfs.support.append=" + append));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -140,4 +142,4 @@ public class SequenceFileLogWriter implements HLog.Writer {
|
|||
public OutputStream getDFSCOutputStream() {
|
||||
return this.dfsClient_out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue