tan-tony opened a new issue, #3988:
URL: https://github.com/apache/couchdb/issues/3988

   ## Description
   I have found a problem in our Couch cluster that some of the continuous 
replication jobs are still running (showing under _active_tasks); however, the 
corresponding replication doc is no longer in _replicator. 
   These continuous replications were setup between 2 clusters, cluster xxx 
with 4 nodes and yyy with 2 nodes. 
   Currently I could not find a way to stop these tasks, and they are still 
around after Couch service restarts. 
   
   See example below. 
     ```
   {
       "node": "couc...@db02.xxx",
       "pid": "<0.9876.2>",
       "changes_pending": null,
       "checkpoint_interval": 30000,
       "checkpointed_source_seq": 
"152-g1AAAABleJzLYWBgYMxgTmGQSc4vTc5ISXJISTIw1EvOyDTUK8uvKEkt0stLLckBqmJKZMhjYfgPBFkZzIkzcoFC7JYGyYmGlmkEdGcBAAObH_k",
       "continuous": true,
       "database": "_replicator",
       "doc_id": "72ad82ac143cbef8896eef52bc08e5f0",
       "doc_write_failures": 0,
       "docs_read": 0,
       "docs_written": 0,
       "missing_revisions_found": 0,
       "replication_id": 
"daeb17fcc93c7a3839a541a495739667+continuous+create_target",
       "revisions_checked": 0,
       "source": "http://db01.yyy/abc/";,
       "source_seq": 0,
       "started_on": 1649145165,
       "target": "http://db01.xxx:5984/abc/";,
       "through_seq": 
"152-g1AAAABleJzLYWBgYMxgTmGQSc4vTc5ISXJISTIw1EvOyDTUK8uvKEkt0stLLckBqmJKZMhjYfgPBFkZzIkzcoFC7JYGyYmGlmkEdGcBAAObH_k",
       "type": "replication",
       "updated_on": 1649284218,
       "user": null
     }
   ```
   ```
   $ curl 'http://db02.xxx:5984/_replicator/72ad82ac143cbef8896eef52bc08e5f0' | 
jq .
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100    41  100    41    0     0    200      0 --:--:-- --:--:-- --:--:--   
200
   {
     "error": "not_found",
     "reason": "missing"
   }
   
   ```
   
   ## Steps to Reproduce
   Unknown.
   
   ## Expected Behaviour
   _active_tasks should match what's in _replicator. 
   
   ## Your Environment
   Couch 2.3.1 running in Centos7 VM.
   {
     "couchdb": "Welcome",
     "version": "2.3.1",
     "git_sha": "c298091a4",
     "uuid": "79089b52d0bdf39de414eae795f3e646",
     "features": [
       "pluggable-storage-engines",
       "scheduler"
     ],
     "vendor": {
       "name": "The Apache Software Foundation"
     }
   }
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to