ashishkumar50 opened a new pull request, #4933: URL: https://github.com/apache/ozone/pull/4933
## What changes were proposed in this pull request? We should avoid mixing JSON output with hints, which can lead to jq parse failure. In this PR, In code where hints are printed with stdout is replaced by stderr. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-8858 ## How was this patch tested? Verified in local cluster to see json/err redirection `$$ozone sh key list -l 1 o3://localhost:9862/vol11/ > a.txt` `Listing first 1 entries of the result. Use --length (-l) to override max returned keys.` ``` $$cat a.txt [ { "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" : { } } ] ``` -- 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]
