couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (JIRA)" <>
Subject [jira] [Updated] (COUCHDB-1266) Add stats field to _active_tasks
Date Tue, 30 Aug 2011 23:22:09 GMT


Paul Joseph Davis updated COUCHDB-1266:

    Attachment: alternate-api.diff

Not sure why we'd want to delay changing the status code until 2.0. 1.2 seems like a big enough
version that we could improve this part of the code.

Why would you want to see this stuff in Futon? If Futon is doing its job all of the relevant
information should be represented in the UI. I can't imagine that normal people are going
to be interested in seeing a JSON blob duplicating all of the status information that's already
formatted for display.

I guess its possible that the definition of progress changes in the future. Not sure I see
how it would change enough to be considerably different yet the same enough that it's interpreted
the same.

As to the record comment I'm not sure where that's coming from. The suggestion on using a
proplist is so that we can carry the task information around and update it more gracefully.
As an example I did a quick sketch of what this might look like for the view compactor. Attached
is a diff from trunk showing what I was thinking.

> Add stats field to _active_tasks
> --------------------------------
>                 Key: COUCHDB-1266
>                 URL:
>             Project: CouchDB
>          Issue Type: Improvement
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>             Fix For: 1.2
>         Attachments: alternate-api.diff
> This proposal is simply to add a "stats" field to the _active_tasks results. This field
can be an arbitrary JSON value and each task can set it to whatever is appropriate for it.The
following patch also defines some basic stats for the existing tasks:
> 1) database compaction - # changes done, total changes, # of revisions copied, # of attachments
copied and progress (an integer percentage, same as what is exposed in the existing text field
> 2) view compaction - # of ids copied, total number of ids, # of kvs copied, total number
of kvs and progress
> 3) view indexing - # changes done, total changes, # inserted kvs, # deleted kvs, progress
> 4) replication - # missing revisions checked, # missing revisions found, # docs read,
# docs written, # doc write failures, source seq number, checkpointed source seq number, progress.
> A screenshot of Futon with 3 different tasks:
> Patch at:

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message