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/04/20 20:13:00 UTC
[jira] [Commented] (HDDS-6474) File system optimized bucket list status file number inconsistent
[ https://issues.apache.org/jira/browse/HDDS-6474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525259#comment-17525259 ]
Ayush Saxena commented on HDDS-6474:
------------------------------------
you need to create a PR with this [fix fso list|https://github.com/Mengqi777/ozone/commit/df3097388c89bec06e433f945dce271f4d4c2212]
add the Jira Id and title as the the title of the PR. BTW. you need to write a UT for your code as well
> File system optimized bucket list status file number inconsistent
> -----------------------------------------------------------------
>
> Key: HDDS-6474
> URL: https://issues.apache.org/jira/browse/HDDS-6474
> Project: Apache Ozone
> Issue Type: Bug
> Affects Versions: 1.2.0
> Reporter: mengqi
> Priority: Major
>
> I put 10000 file (file name is 0001 - 10000) to a File system optimized bucket dir /user/filesystemoptimizedbucket/test and list the dir ,found something wrong.
> ./bin/ozone fs -ls /user/filesystemoptimizedbucket/test | wc -l
> only 5000+ files found , not 10000。 so I read the source code ,and found the issue in the function org.apache.hadoop.ozone.om.KeyManagerImpl#getFilesFromDirectory
> after listStatusFindFilesInTableCache, countEntries should be set into 0. so we can find all files from keyTable.iterator .
> I fix the issue, someone can review it ?
> [fix fso list|https://github.com/Mengqi777/ozone/commit/df3097388c89bec06e433f945dce271f4d4c2212]
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org