Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-7950

Add continuation token, page size and diff response to support Snapdiff pagination

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • None

    Description

      API change #1:
      To Support Partial SnapshotDiff and pagination, we need to add new parameters continuation token and page size and pass them till OmSnapshotManager and response to client appropriately.

      API change #2:
      Snapshot diff API is synchronous API and diff report generation could long time. It is possible the client request timeout before diff report gets generated.
      To solve this, client submits the request, we can spawn a background thread to generate the diff and return the client that job has been queued and wait for sometime before retrying.
      For this, we need to add Job Status and wait time in the SnapshotDiffResponse and set these when generating the response for it in SnapshotDiffManager.

      Attachments

        Issue Links

          Activity

            People

              hemantk Hemant Kumar
              hemantk Hemant Kumar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: