You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2023/07/18 21:04:00 UTC

[jira] [Created] (HBASE-27982) Synchronous replication should check if the file system supports truncate API

Wei-Chiu Chuang created HBASE-27982:
---------------------------------------

             Summary: 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


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)