You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ayush Saxena (Jira)" <ji...@apache.org> on 2022/08/17 15:25:00 UTC

[jira] [Commented] (HDDS-7132) GetFileStatus returns NULL for some paths

    [ https://issues.apache.org/jira/browse/HDDS-7132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580844#comment-17580844 ] 

Ayush Saxena commented on HDDS-7132:
------------------------------------

For me the case was in Hive tests to isolate parallel tests, Hive adds random number path for Warehouse directory, which Ozone didn't like, considering Bucket name can not be all numbers or IPv4, and was leading to NPE, with no clue in logs either.
very specific to ozone not with hdfs or localFs, should log and throw the exception, rather than eating it up, guessing such corner cases just looking at NPE isn't that easy....


> GetFileStatus returns NULL for some paths
> -----------------------------------------
>
>                 Key: HDDS-7132
>                 URL: https://issues.apache.org/jira/browse/HDDS-7132
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Ayush Saxena
>            Assignee: Ayush Saxena
>            Priority: Major
>              Labels: pull-request-available
>
> Explored while integrating with Hive.
> GetFileStatus by FS Javadoc, either returns the FileStatus or FNF if the path doesn't exist, or IOE in other cases.
> Hive checks whether the WH path exists and is a directory by calling getFileStatus(), on FNF it goes and creates the directory.
> But due to Ozone returning NULL, It leads to an NPE, and there is no way to find out the reason for NULL, but to debug.



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