[
https://issues.apache.org/jira/browse/HBASE-27982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17744415#comment-17744415
]
Duo Zhang commented on HBASE-27982:
-----------------------------------
At xiaomi, for support hadoop 2.6 or 2.4, I changed the implementation to not
rely on truncate API, it is possible. If this is also a problem here I could
try to remember how I did this and implement it in the open source version.
Thanks.
> Synchronous replication should check if the file system supports truncate API
> -----------------------------------------------------------------------------
>
> Key: HBASE-27982
> URL: https://issues.apache.org/jira/browse/HBASE-27982
> Project: HBase
> Issue Type: Improvement
> Reporter: Wei-Chiu Chuang
> Priority: Minor
>
> Ok. I missed this but I was just told that the synchronous replication
> leverages the truncate() FS API.
> https://github.com/apache/hbase/blob/master/hbase-server/src/main/java/org/apache/hadoop/hbase/master/replication/SyncReplicationReplayWALManager.java#L282
> Ozone does not implement truncate so calling this method on the WAL FS will
> result in an exception. It would be a better user experience to alert user
> that this is not supported from the start.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)