[ 
https://issues.apache.org/jira/browse/HBASE-27746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wei-Chiu Chuang resolved HBASE-27746.
-------------------------------------
    Fix Version/s: 4.0.0-alpha-1
       Resolution: Fixed

> Check if the file system supports storage policy before invoking 
> setStoragePolicy()
> -----------------------------------------------------------------------------------
>
>                 Key: HBASE-27746
>                 URL: https://issues.apache.org/jira/browse/HBASE-27746
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Wei-Chiu Chuang
>            Assignee: Wei-Chiu Chuang
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0-alpha-1
>
>
> Found these messages on an Ozone cluster:
> {noformat}
> 2023-03-20 12:27:09,185 WARN org.apache.hadoop.hbase.util.CommonFSUtils: 
> Unable to set storagePolicy=HOT for 
> path=ofs://ozone1/vol1/bucket1/hbase/MasterData/data/master/store/1595e783b53d99cd5eef43b6debb2682/proc.
>  DEBUG log level might have more details.
> java.lang.UnsupportedOperationException: RootedOzoneFileSystem doesn't 
> support setStoragePolicy
>         at 
> org.apache.hadoop.fs.FileSystem.setStoragePolicy(FileSystem.java:3227)
>         at 
> org.apache.hadoop.hbase.util.CommonFSUtils.invokeSetStoragePolicy(CommonFSUtils.java:521)
>         at 
> org.apache.hadoop.hbase.util.CommonFSUtils.setStoragePolicy(CommonFSUtils.java:504)
>         at 
> org.apache.hadoop.hbase.util.CommonFSUtils.setStoragePolicy(CommonFSUtils.java:477)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegionFileSystem.setStoragePolicy(HRegionFileSystem.java:225)
>         at org.apache.hadoop.hbase.regionserver.HStore.<init>(HStore.java:275)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion.instantiateHStore(HRegion.java:6387)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:1115)
>         at 
> org.apache.hadoop.hbase.regionserver.HRegion$1.call(HRegion.java:1112)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
>         at java.lang.Thread.run(Thread.java:748)
> {noformat}
> Ozone does not support storage policy. If we use 
> FileSystem.hasPathCapability() API to check before invoking the API, these 
> warning messages can be avoided.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to