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

Replication is crashing when changes feed was consumed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.1, 1.0.2
    • 1.0.2, 1.1
    • Replication
    • None

    Description

      Yesterday I hit a bug, where pull replication is dying which is resulting in a {exit,{json_encode,

      {bad_term,<0.133.0>}

      }} error (CouchDB is trying to encode a PID into JSON).

      Adam and Paul had a look at this issue yesterday and they found the underlying issue: There was a missing clause catching the exit message when the changes feed was consumed and ibrowse closes the HTTP connection for that feed.

      Adam wrote a quick patch yesterday, which I'll append here too (applies cleanly to 1.0.x at time of writing).

      (Sorry for any inaccuracy, I only understood the issue partially)

      Attachments

        1. couchdb-993.patch
          0.7 kB
          Sebastian Cohnen

        Activity

          People

            Unassigned Unassigned
            tisba Sebastian Cohnen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: