ashishkumar50 opened a new pull request, #4931:
URL: https://github.com/apache/ozone/pull/4931

   ## What changes were proposed in this pull request?
   
   Currently ListOptions provide -l option to override number of results 
return. 
   In this PR providing a way to return all results by providing --all option 
applicable for command which is using ListOptions like ListVolume, ListBucket, 
ListKeys.
   
   - Using --all option for listKeys
   
   `ozone sh key list --all o3://localhost:9862/vol11/bucket1
   [ {
     "volumeName" : "vol11",
     "bucketName" : "bucket1",
     "name" : "key1",
     "dataSize" : 0,
     "creationTime" : "2023-06-19T11:04:46.584Z",
     "modificationTime" : "2023-06-19T11:04:46.640Z",
     "replicationConfig" : {
       "replicationFactor" : "THREE",
       "requiredNodes" : 3,
       "replicationType" : "RATIS"
     },
     "metadata" : { }
   }, {
     "volumeName" : "vol11",
     "bucketName" : "bucket1",
     "name" : "key2",
     "dataSize" : 0,
     "creationTime" : "2023-06-19T11:04:50.748Z",
     "modificationTime" : "2023-06-19T11:04:50.779Z",
     "replicationConfig" : {
       "replicationFactor" : "THREE",
       "requiredNodes" : 3,
       "replicationType" : "RATIS"
     },
     "metadata" : { }
   } ]`
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8887
   
   ## How was this patch tested?
   
   Using integration test and also local test using docker cluster.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to