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

ASF GitHub Bot updated HDDS-15522:
----------------------------------
    Labels: pull-request-available  (was: )

> "This metrics class is not used" warning in shutdownhookmanager when using 
> Ozone viewoverloadfs
> -----------------------------------------------------------------------------------------------
>
>                 Key: HDDS-15522
>                 URL: https://issues.apache.org/jira/browse/HDDS-15522
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Luis Pigueiras
>            Priority: Minor
>              Labels: pull-request-available
>
> While validating Ozone integration via _ViewFileSystemOverloadScheme_, we
> observe intermitent warnings during client shutdown when accessing Ozone 
> through
> the mounted path.
> Our configuration was using:
> {code}
> fs.viewfs.mounttable.hadoopqa.link./ozone = ofs://qa/
> fs.viewfs.mounttable.hadoopqa.linkFallback = hdfs://hadoopqa/
> {code}
> And we were seeing this warning when we were doing:
> {code}
> $ hdfs dfs -ls /ozone
> ...
> 26/06/10 10:06:13 WARN util.ShutdownHookManager: ShutdownHook 
> 'ClientFinalizer' failed, java.util.concurrent.ExecutionException: 
> java.lang.IllegalStateException: This metrics class is not used.
> java.util.concurrent.ExecutionException: java.lang.IllegalStateException: 
> This metrics class is not used.
>         at 
> java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
>         at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:205)
>         at 
> org.apache.hadoop.util.ShutdownHookManager.executeShutdown(ShutdownHookManager.java:124)
>         at 
> org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:95)
> Caused by: java.lang.IllegalStateException: This metrics class is not used.
>         at 
> org.apache.hadoop.hdds.scm.ContainerClientMetrics.release(ContainerClientMetrics.java:96)
>         at 
> org.apache.hadoop.ozone.client.rpc.RpcClient.close(RpcClient.java:1892)
>         at 
> org.apache.hadoop.ozone.client.OzoneClient.close(OzoneClient.java:122)
>         at 
> org.apache.hadoop.fs.ozone.BasicRootedOzoneClientAdapterImpl.close(BasicRootedOzoneClientAdapterImpl.java:372)
>         at 
> org.apache.hadoop.fs.ozone.BasicRootedOzoneFileSystem.close(BasicRootedOzoneFileSystem.java:225)
>         at 
> org.apache.hadoop.fs.viewfs.ViewFileSystem$InnerCache.closeAll(ViewFileSystem.java:156)
>         at 
> org.apache.hadoop.fs.viewfs.ViewFileSystem.close(ViewFileSystem.java:1936)
>         at 
> org.apache.hadoop.fs.FileSystem$Cache.closeAll(FileSystem.java:3816)
>         at 
> org.apache.hadoop.fs.FileSystem$Cache$ClientFinalizer.run(FileSystem.java:3833)
>         at 
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
>         at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
>         at 
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
>         at java.base/java.lang.Thread.run(Thread.java:829)
> {code}
> The impact appears to be limited to client shutdown noise and misleading
> warnings/exceptions in client logs because read/write/list operations were 
> working fine when using the Ozone {{/ozone}} path.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to