[
https://issues.apache.org/jira/browse/HBASE-14230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14876874#comment-14876874
]
Heng Chen commented on HBASE-14230:
-----------------------------------
{quote}
Running ltt vs master in standalone mode
{quote}
Hi, [~ndimiduk], I don't know what {{itt}} it is, could you tell me how to
reproduce the problem locally. Thanks !
I has fix it like below, but i want to test it first before upload the patch.
{code}
int getLogReplication() {
try {
if (this.hdfs_out instanceof HdfsDataOutputStream) {
return ((HdfsDataOutputStream)
this.hdfs_out).getCurrentBlockReplication();
}
} catch (IOException e) {
LOG.warn("", e);
}
return 0;
}
{code}
> replace reflection in FSHlog with
> HdfsDataOutputStream#getCurrentBlockReplication()
> -----------------------------------------------------------------------------------
>
> Key: HBASE-14230
> URL: https://issues.apache.org/jira/browse/HBASE-14230
> Project: HBase
> Issue Type: Improvement
> Components: wal
> Reporter: Heng Chen
> Assignee: Heng Chen
> Priority: Minor
> Fix For: 2.0.0, 1.2.0, 1.3.0
>
> Attachments: HBASE-14230.patch
>
>
> As comment TODO said, we use
> {{HdfsDataOutputStream#getCurrentBlockReplication}} and
> {{DFSOutputStream.getPipeLine}} to replace reflection in FSHlog
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)