rich7420 opened a new pull request, #9238: URL: https://github.com/apache/ozone/pull/9238
## What changes were proposed in this pull request? follow the requirements from this [issue](https://issues.apache.org/jira/browse/HDDS-13755): 1. demonstrate --all-status option. 2. clarify the difference between -all-status and -all, the latter tunes pagination limit, not snapdiff job status I noticed dataflow in this part is like: ``` CLI Command ↓ ListSnapshotDiffHandler.execute() ↓ Parse Options: • --all-status → listAllStatus (boolean) • --job-status → jobStatus (String, default: "in_progress") • listOptions.getStartItem() → prevSnapshotDiffJob • listOptions.getLimit() → limit (used later for output) ↓ ObjectStore.listSnapshotDiffJobs() ↓ Creates SnapshotDiffJobIterator ↓ When iterator needs data → RPC Call: in [Client] part RpcClient → OzoneManagerProtocolClientSideTranslatorPB → Builds Protobuf Request (ListSnapshotDiffJobRequest) → OmTransport.submitRequest() (gRPC/Hadoop RPC) in [Network] part gRPC/Protobuf RPC transmission in [Server] part OzoneManagerProtocolServerSideTranslatorPB → OzoneManagerRequestHandler → OzoneManager.listSnapshotDiffJobs() (ACL checks, metrics) → OmSnapshotManager.getSnapshotDiffList() (validation) → SnapshotDiffManager.getSnapshotDiffJobList() • Filters by volumeName, bucketName • Filters by status (if listAllStatus=true: all jobs, else: match jobStatus) • Limits by maxEntries (server-side pagination) • Returns ListSnapshotDiffJobResponse ↓ Response flows back → SnapshotDiffJobIterator ↓ Converts to Iterator<OzoneSnapshotDiff> and Stores continuation token for next page ↓ printAsJsonArray(iterator, limit) ``` ## What is the link to the Apache JIRA [HDDS-13755](https://issues.apache.org/jira/browse/HDDS-13755) ## How was this patch tested? none -- 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]
