Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-55022

[BP 7.1.4] - XDCR panic when filtering

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.1.4
    • 6.6.0, 6.6.1, 6.6.2, 6.6.3, 6.6.4, 6.6.5, 7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.0.5, 7.1.0, 7.1.1, 7.1.2, 7.1.3
    • XDCR
    • Untriaged
    • 0
    • Unknown

    Description

      This happen when

      1. Filter uses document key such as META().id = "docName"
      2. The document being filtered has uncommitted transaction XATTRs

      In line https://github.com/couchbase/goxdcr/blob/9c6fce2e565f87fdb7abd6503c32f2a40593d928/base/filter/filterUtils.go#L90

      Filter overwrites the previous body with a smaller one, the endBodyPos was kept at the old value, causing panic at https://github.com/couchbase/goxdcr/blob/9c6fce2e565f87fdb7abd6503c32f2a40593d928/base/filter/filterUtils.go#L117 

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-55022
          # Subject Branch Project Status CR V

          Activity

            People

              ayush.nayyar Ayush Nayyar
              neil.huang Neil Huang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty