hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharat Viswanadham (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDDS-1013) NPE while listing directories
Date Sat, 26 Jan 2019 01:08:00 GMT

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

Bharat Viswanadham commented on HDDS-1013:
------------------------------------------

+1 LGTM, pending jenkins

One minor comment

// /dir1/dir/file121 this needs to be removed from the comments in test, it should be as /dir12/file121

This can be handled during commit.

 

> NPE while listing directories
> -----------------------------
>
>                 Key: HDDS-1013
>                 URL: https://issues.apache.org/jira/browse/HDDS-1013
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Filesystem
>            Reporter: Arpit Agarwal
>            Assignee: Hanisha Koneru
>            Priority: Blocker
>         Attachments: HDDS-1013.001.patch, HDDS-1013.002.patch
>
>
> The following sequence of steps on a fresh ozone install results in an NPE:
> {code}
> hadoop@50ddd1e1b186:~$ ozone sh volume create /volume1
> 2019-01-25 20:42:55 INFO  RpcClient:257 - Creating Volume: volume1, with hadoop as owner
and quota set to 1152921504606846976 bytes.
> hadoop@50ddd1e1b186:~$ ozone sh bucket create /volume1/bucket1
> 2019-01-25 20:43:20 INFO  RpcClient:386 - Creating Bucket: volume1/bucket1, with Versioning
false and Storage Type set to DISK
> hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir1
> hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir2
> hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir1/dir11
> hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -mkdir /dir2/dir21
> hadoop@50ddd1e1b186:~$ ozone fs -fs o3fs://bucket1.volume1/ -ls /
> -ls: Fatal internal error
> java.lang.NullPointerException
> 	at org.apache.hadoop.fs.ozone.OzoneFileSystem.innerGetFileStatusForDir(OzoneFileSystem.java:708)
> 	at org.apache.hadoop.fs.ozone.OzoneFileSystem$ListStatusIterator.addSubDirStatus(OzoneFileSystem.java:553)
> 	at org.apache.hadoop.fs.ozone.OzoneFileSystem$ListStatusIterator.processKey(OzoneFileSystem.java:530)
> 	at org.apache.hadoop.fs.ozone.OzoneFileSystem$OzoneListingIterator.iterate(OzoneFileSystem.java:885)
> 	at org.apache.hadoop.fs.ozone.OzoneFileSystem.listStatus(OzoneFileSystem.java:594)
> 	at org.apache.hadoop.fs.shell.PathData.getDirectoryContents(PathData.java:269)
> 	at org.apache.hadoop.fs.shell.Command.recursePath(Command.java:439)
> 	at org.apache.hadoop.fs.shell.Ls.processPathArgument(Ls.java:226)
> 	at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:286)
> 	at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:270)
> 	at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:120)
> 	at org.apache.hadoop.fs.shell.Command.run(Command.java:177)
> 	at org.apache.hadoop.fs.FsShell.run(FsShell.java:327)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
> 	at org.apache.hadoop.fs.FsShell.main(FsShell.java:390)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message