1
votes

See the following code from http://wiki.apache.org/couchdb/Replication. Notice that docs_written = docs_read, but progress = 3. Why isn't progress = 100?

Also, would there be any difference between couchdb and couchbase?

$ curl http://localhost:5984/_active_tasks
[
    {
        "pid": "<0.1303.0>",
        "replication_id": "e42a443f5d08375c8c7a1c3af60518fb+create_target",
        "checkpointed_source_seq": 17333,
        "continuous": false,
        "doc_write_failures": 0,
        "docs_read": 17833,
        "docs_written": 17833,
        "missing_revisions_found": 17833,
        "progress": 3,
        "revisions_checked": 17833,
        "source": "http://fdmanana.iriscouch.com/test_db/",
        "source_seq": 551202,
        "started_on": 1316229471,
        "target": "test_db",
        "type": "replication",
        "updated_on": 1316230082
    }
]
1
I edited this question to remove Couchbase from the title and tag. Couchbase is a very different product than CouchDB, but uses some of the same code. This question would not apply to Couchbase. - mikewied

1 Answers

2
votes

Because 17333 * 100 / 551202 = 3.