ivandika3 opened a new pull request, #7988:
URL: https://github.com/apache/ozone/pull/7988
## What changes were proposed in this pull request?
This adds a support for Ozone client to be able to do read-only snapshot
operations (GetSnapshotInfo, ListSnapshots, SnapshotDiff, ListSnapshotDiffJobs)
from non-leader OM. For example, currently Snapdiff request will always go to
the current OM leader. The leader will start a Snapdiff job if it does not
exist yet and once it's finished, the user can rerun the snapdiff command again
to receive the snapshot diffs returned by the Snapdiff job. However, if there
is a OM leader change and another snapshot diff is called, the new OM leader
needs to start the Snapdiff job again and the client will receive that the
snapdiff is not ready yet, although it was ready at the previous leader.
This adds the following features
- Single (no-failover) proxy implementation to pick a specific OM node to
get snapshot from `SingleOMFailoverProxyProviderBase`
- Supports for non-leader OM node to serve snapshot-related reads
- This is supported by adding a new `omNodeId` proto field which if set
means that the OM request is intended for the particular OM node
- Ozone snapshot shell supports to read snapshots from followers
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-6856
## How was this patch tested?
Unit test (proxy provider implementation), integration test (Ozone client),
and acceptance test (Ozone shell).
--
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]