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

Value eviction bucket - Replication of deletes with XATTRS will fail if return EWOULD_BLOCK

    XMLWordPrintable

Details

    • Triaged
    • 1
    • Yes

    Description

      Problem

      As described in CBSE-8828, for a replica DCP stream. If a previous item that uses XATTRs is to be deleted, however it is not resident - then we must perform a bgfetch - see MB-36087. When the bgfetch is complete we replay PassiveStream::messageReceived. However this time it fails because the last seqno now equals the sequence number of the deletion and so it is discarded.

      Suggested Possible Solution

      • only set the last seqno to the seqno of the message just received, once the message has been completed or
      • If an EWOULD_BLOCK occurs reserve the setting of the last seqno so the message can be received again.

      Attachments

        1. image001.png
          90 kB
        2. image001.png
          90 kB
        3. image001.png
          90 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            There are no commits yet on this issue.

            People

              ashwin.govindarajulu Ashwin Govindarajulu
              owend Daniel Owen
              Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty