garbados opened a new issue #1159: [enhancement] Populate `info` for running 
replications in `/_scheduler/docs`
URL: https://github.com/apache/couchdb/issues/1159
 
 
   <!--- Provide a general summary of the issue in the Title above -->
   Currently, /_scheduler/docs does not populate the `info` object for running 
replications 
([source](https://github.com/apache/couchdb/blob/master/src/couch_replicator/src/couch_replicator_scheduler.erl#L139-L147))
 such that in order to track a replication's progress, one must still check 
/_active_tasks periodically. /_scheduler/docs should populate `info` for active 
replications so that their progress can be tracked without checking 
/_active_tasks.
   
   ## Expected Behavior
   <!--- If you're describing a bug, tell us what should happen -->
   <!--- If you're suggesting a change/improvement, tell us how it should work 
-->
   
   The `info` object on running replication tasks should not be `null` where 
possible. It should contain properties like `docs_read` that can normally be 
acquired from /_active_tasks.
   
   ## Current Behavior
   <!--- If describing a bug, tell us what happens instead of the expected 
behavior -->
   <!--- If suggesting a change/improvement, explain the difference from 
current behavior -->
   
   The `info` property is only populated for replication tasks that have 
completed or failed.
   
   ## Possible Solution
   <!--- Not obligatory, but suggest a fix/reason for the bug, -->
   <!--- or ideas how to implement the addition or change -->
   
   ## Steps to Reproduce (for bugs)
   <!--- Provide a link to a live example, or an unambiguous set of steps to -->
   <!--- reproduce this bug. Include code to reproduce, if relevant -->
   
   ## Context
   <!--- How has this issue affected you? What are you trying to accomplish? -->
   <!--- Providing context helps us come up with a solution that is most useful 
in the real world -->
   I am trying to track a running replication's progress by using 
/_scheduler/docs rather than /_active_tasks.
   
   ## Your Environment
   <!--- Include as many relevant details about the environment you experienced 
the bug in -->
   * Version used: 2.1.1
   * Browser Name and version: curl 7.47.0
   * Operating System and version (desktop or mobile): Ubuntu 16.04.3 LTS
   * Link to your project: N/A
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to