[ 
https://issues.apache.org/jira/browse/HDFS-12310?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16150862#comment-16150862
 ] 

Uma Maheswara Rao G commented on HDFS-12310:
--------------------------------------------

When I had discussion with [~andrew.wong], he suggested to have at least a 
status command like 'setrep -w'
Here is the proposal:
  Add a subcommand to wait to finish the SPS work. ex: hdfs storagepolicies 
-satisfyStoragePolicy -path <path> -w
 Here -w will make this call to wait and check the progress of SPS work. This 
call could be block for long time until the work finished. We will add a client 
API to get the SatisfierStatus of SPS work. SatisfierStatus could contain the 
status of Failed/Retried Items, status=IN_PROGRESS, NOT_AVAILABLE (if SPS work 
finished and cleaned up all the information or no SPS calls made to that 
directory/file ), SUCCESS ( once Work finished, we could cache the status for 
certain amount of time (say 1min or 5mins?). After this period, status would be 
turned to NOT_AVAILABLE).
In the command line: '-w' will make use of above API and wait at client side.

Any comments?

> [SPS]: Provide an option to track the status of in progress requests
> --------------------------------------------------------------------
>
>                 Key: HDFS-12310
>                 URL: https://issues.apache.org/jira/browse/HDFS-12310
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: datanode, namenode
>            Reporter: Uma Maheswara Rao G
>
> As per the [~andrew.wang] 's review comments in HDFS-10285, This is the JIRA 
> for tracking about the options how we track the progress of SPS requests.
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to