Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1255

Deleting source db in continuous filtered replication crashes couchdb and prevents restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.1
    • 1.1.1
    • None
    • None
    • OSX

    Description

      Steps to reproduce:

      curl -X PUT http://user:pass@localhost:5984/dba
      curl -X PUT http://user:pass@localhost:5984/dbb
      curl -X PUT http://user:pass@localhost:5984/dba/_design/testapp -d '{"filters": {"rep_filter": "function(doc, req)

      {return true}

      "}}' -H "Content-Type: application/json"
      curl -X POST http://user:pass@localhost:5984/_replicator -d '

      {"_id": "testrep1", "source": "dba", "target": "http://user:pass@localhost:5984/dbb", "continuous": true, "create_target": true, "filter": "testapp/rep_filter"}

      ' -H "Content-Type: application/json"

      1. wait long enough for first replication checkpoint
        sleep 10
        curl -X DELETE http://user:pass@localhost:5984/dba

      At this point couch crashes and can't be restarted.

      These issues are related:
      https://issues.apache.org/jira/browse/COUCHDB-1233
      https://issues.apache.org/jira/browse/COUCHDB-1199

      Maybe fixed in 1.1.1 by patch in above issue, but I don't have access to confirm.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shr Simon Robson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: