You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Sadanand Shenoy (Jira)" <ji...@apache.org> on 2022/10/10 11:18:00 UTC

[jira] [Resolved] (HDDS-6664) Trash FS getUri gives UnsupportedOperationException

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

Sadanand Shenoy resolved HDDS-6664.
-----------------------------------
    Resolution: Fixed

> Trash FS getUri gives UnsupportedOperationException
> ---------------------------------------------------
>
>                 Key: HDDS-6664
>                 URL: https://issues.apache.org/jira/browse/HDDS-6664
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM
>            Reporter: Sadanand Shenoy
>            Assignee: pratap chandu
>            Priority: Major
>              Labels: pull-request-available
>
> {code:java}
> Exception in thread "Trash Emptier" java.lang.UnsupportedOperationException: fs.getUri() not implemented in TrashOzoneFileSystem
>         at org.apache.hadoop.ozone.om.TrashOzoneFileSystem.getUri(TrashOzoneFileSystem.java:124)
>         at org.apache.hadoop.fs.FileSystem.close(FileSystem.java:2598)
>         at org.apache.hadoop.ozone.om.TrashPolicyOzone$Emptier.run(TrashPolicyOzone.java:232)
>         at java.lang.Thread.run(Thread.java:748) 
> {code}
> During fs.close() , a [debug log message|https://github.com/apache/hadoop/blob/be70bbb4be0c112c9032991342da1effcf74e00d/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java#L2663] is printed that prints fs.getUri(). Add a uri string such as "o3trash" to bypass this error . getUri is not implemented or used anywhere else so just add a dummy uri to bypass this during log printing



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org