Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2
    • Component/s: None
    • Labels:
      None

      Description

      This proposal is simply to allow the output of _active_tasks to be less rigid. Basically to allow each task to be able to output different JSON fields.

      Somethings like the status text simply go away. Instead application can built it based on more granular fields provided by _active_tasks.
      Some examples:

      1) "progress" (an integer percentage, for all tasks)

      2) "database" (for compactions and indexer tasks)

      3) "design_document" (for indexer and view compaction tasks)

      4) "source" and "target" (for replications)

      5) "docs_read", "docs_written", "doc_write_failures",
      "missing_revs_found", "missing_revs_checked", "source_seq",
      "checkpointed_source_seq" and "continuous" for replications

      1. alternate-api.patch
        4 kB
        Paul Joseph Davis

        Activity

        Filipe Manana created issue -
        Paul Joseph Davis made changes -
        Field Original Value New Value
        Attachment alternate-api.diff [ 12492396 ]
        Paul Joseph Davis made changes -
        Attachment alternate-api.diff [ 12492396 ]
        Paul Joseph Davis made changes -
        Attachment alternate-api.patch [ 12492397 ]
        Filipe Manana made changes -
        Summary Add stats field to _active_tasks Make _active_tasks more flexible
        Description 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 "status");

        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:

        http://dl.dropbox.com/u/25067962/active_tasks_stats.png

        Patch at:

        https://github.com/fdmanana/couchdb/compare/task_stats.diff

        This proposal is simply to allow the output of _active_tasks to be less rigid. Basically to allow each task to be able to output different JSON fields.

        Somethings like the status text simply go away. Instead application can built it based on more granular fields provided by _active_tasks.
        Some examples:

        1) "progress" (an integer percentage, for all tasks)

        2) "database" (for compactions and indexer tasks)

        3) "design_document" (for indexer and view compaction tasks)

        4) "source" and "target" (for replications)

        5) "docs_read", "docs_written", "doc_write_failures",
           "missing_revs_found", "missing_revs_checked", "source_seq",
           "checkpointed_source_seq" and "continuous" for replications
        Filipe Manana made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Filipe Manana
            Reporter:
            Filipe Manana
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development