[ 
https://issues.apache.org/jira/browse/HDDS-7952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hemant Kumar updated HDDS-7952:
-------------------------------
    Description: 
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.

API and client changes are done as part of 
[HDDS-7950|https://issues.apache.org/jira/browse/HDDS-7950] and 
[PR-4264|https://github.com/apache/ozone/pull/4264].

This task is to make relevant changes on server side and introduce job state 
flow. 

  was:
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|https://github.com/apache/ozone/blob/6560e2f606879dfee82e3bdcc6f94b2e802b881a/hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto#L1741]
 and set these when generating the response for it in *SnapshotDiffManager*.


> Server side changes to add wait time and job status for Snapdiff API
> --------------------------------------------------------------------
>
>                 Key: HDDS-7952
>                 URL: https://issues.apache.org/jira/browse/HDDS-7952
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Hemant Kumar
>            Priority: Major
>
> 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.
> API and client changes are done as part of 
> [HDDS-7950|https://issues.apache.org/jira/browse/HDDS-7950] and 
> [PR-4264|https://github.com/apache/ozone/pull/4264].
> This task is to make relevant changes on server side and introduce job state 
> flow. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to