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

Hongbo Zeng commented on HELIX-524:
-----------------------------------

1. For monitoring purpose. The framework can check the progress periodically 
and reflect it in Helix, e.g. in PropertyStore, such that users can check it. 
In a distributed system, there are always outliers running slowly, customers 
need to know which ones are slow and how slow they are. Especially helpful for 
identifying tasks which get stuck.
2. Take action on outlier tasks. The framework can do something smart if it 
finds tasks that are stuck or running slowly. It can optionally cancel the task 
and restart it, maybe somewhere else. Customers can also take some actions on 
those.

> add getProgress() to Task interface
> -----------------------------------
>
>                 Key: HELIX-524
>                 URL: https://issues.apache.org/jira/browse/HELIX-524
>             Project: Apache Helix
>          Issue Type: Improvement
>          Components: helix-core
>    Affects Versions: 0.6.4
>            Reporter: Hongbo Zeng
>             Fix For: 0.6.5
>
>
> Add a getProgress to the Task interface, this is very helpful for long 
> running tasks, from which we know the status of a task and see if it's 
> blocked. The return value is a double, ranging from 0 to 1.0, 1.0 indicates a 
> task is finished



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to