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

Ashish Kumar commented on HDDS-10836:
-------------------------------------

Just create a new docker cluster, so there are no keys inside it.

And keep running lof command while PUT is going on
{code:java}
ozone sh volume create vol1
ozone sh bucket create vol1/bucket1
fallocate -l 5G largefile
ozone sh key put -r THREE -t RATIS /vol1/bucket1/key1 largefile{code}
{code:java}

bash-4.2$ ozone admin om lof --service-host=om --prefix=/vol1/bucket1
0 total open files (est.). Showing 0 open files (limit 100) under path prefix:
  /vol1/bucket1


Client ID               Creation time   Hsync'ed        Open File Path


Reached the end of the list.
bash-4.2$ 
bash-4.2$ ozone admin om lof --service-host=om                       
0 total open files (est.). Showing 0 open files (limit 100) under path prefix:
  /


Client ID               Creation time   Hsync'ed        Open File Path


Reached the end of the list.
bash-4.2$ 
bash-4.2$ 
bash-4.2$ ozone admin om lof --service-host=om
28 total open files (est.). Showing 1 open files (limit 100) under path prefix:
  /


Client ID               Creation time   Hsync'ed        Open File Path
112444089315491840      1715760640178   No              
/vol1/bucket1/-9223372036854775040/key1


Reached the end of the list.
bash-4.2$ ozone admin om lof --service-host=om --prefix=/vol1/bucket1
94 total open files (est.). Showing 1 open files (limit 100) under path prefix:
  /vol1/bucket1


Client ID               Creation time   Hsync'ed        Open File Path
112444089315491840      1715760640178   No              
/vol1/bucket1/-9223372036854775040/key1


Reached the end of the list.
bash-4.2$ ozone admin om lof --service-host=om
362 total open files (est.). Showing 1 open files (limit 100) under path prefix:
  /


Client ID               Creation time   Hsync'ed        Open File Path
112444089315491840      1715760640178   No              
/vol1/bucket1/-9223372036854775040/key1


Reached the end of the list.
bash-4.2$ ozone admin om lof --service-host=om --prefix=/vol1/bucket1
433 total open files (est.). Showing 1 open files (limit 100) under path prefix:
  /vol1/bucket1


Client ID               Creation time   Hsync'ed        Open File Path
112444089315491840      1715760640178   No              
/vol1/bucket1/-9223372036854775040/key1


Reached the end of the list.
bash-4.2$  {code}

> Wrong count is displaying in listOpenFile CLI
> ---------------------------------------------
>
>                 Key: HDDS-10836
>                 URL: https://issues.apache.org/jira/browse/HDDS-10836
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Ashish Kumar
>            Priority: Major
>
> Create large file and put.
> Execute open file listing command, Total open files(est) is showing wrong.
> Only one file exist but it shows in hundreds.
> {code:java}
> bash-4.2$ ozone admin om lof --service-host=om --prefix=/vol1/bucket1
> 325 total open files (est.). Showing 1 open files (limit 100) under path 
> prefix:
>   /vol1/bucket1Client ID      Creation time  Hsync'ed     Open File Path
> 112375613771415552   1714715786293  No     
> /vol1/bucket1/-9223372036854775040/key1{code}
> cc:[~smeng] 
>  



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