ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10835. Show overwritten hsync keys in ListOpenFile CLI

Open ChenSammi opened this issue 9 months ago • 2 comments

What changes were proposed in this pull request?

When a hsync key is overwritten, it will have the overwrittenHsyncKey metadata. This task will support to show or hide this metadata in ListOpenFile CLI.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10835

How was this patch tested?

new Unit test

ChenSammi avatar May 09 '24 04:05 ChenSammi

bash-4.2$ ozone admin om lof --service-host=om --show-deleted --show-overwrittent 
1 total open files (est.). Showing 1 open files (limit 100) under path prefix:
  /

Client ID			Creation time		Hsync'ed	Deleted	Overwritten	Open File Path
112409414921814016	2024-05-09T05:12:30.910Z	No		No		No	/s3v/test/-9223372036854775552/1

ChenSammi avatar May 09 '24 04:05 ChenSammi

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

Client ID			Creation time		Hsync'ed	Open File Path
112409414921814016	2024-05-09T05:12:30.910Z	No		/s3v/test/-9223372036854775552/1

ChenSammi avatar May 09 '24 04:05 ChenSammi