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

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

          Activity

            owend Daniel Owen created issue -
            owend Daniel Owen made changes -
            Field Original Value New Value
            Link This issue relates to CBSE-8828 [ CBSE-8828 ]
            owend Daniel Owen made changes -
            Link This issue relates to MB-36087 [ MB-36087 ]
            owend Daniel Owen made changes -
            Fix Version/s 6.6.1 [ 17002 ]
            owend Daniel Owen made changes -
            Is this a Regression? Unknown [ 10452 ] Yes [ 10450 ]
            owend Daniel Owen made changes -
            Triage Untriaged [ 10351 ] Triaged [ 10350 ]
            owend Daniel Owen made changes -
            Summary Replication of deletes with XATTRS can fail due to EWOULD_BLOCK Replication of deletes with XATTRS will fail if return EWOULD_BLOCK
            owend Daniel Owen made changes -
            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, one 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.
            +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.
            owend Daniel Owen made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            drigby Dave Rigby made changes -
            Rank Ranked higher
            drigby Dave Rigby made changes -
            Link This issue is caused by MB-36087 [ MB-36087 ]
            drigby Dave Rigby made changes -
            Link This issue relates to MB-36087 [ MB-36087 ]
            owend Daniel Owen made changes -
            Assignee Daniel Owen [ owend ] Jim Walker [ jwalker ]
            jwalker Jim Walker made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            perry Perry Krug made changes -
            Attachment image001.png [ 106493 ]
            perry Perry Krug made changes -
            Attachment image001.png [ 106524 ]
            perry Perry Krug made changes -
            Attachment image001.png [ 106531 ]
            James Flather James Flather made changes -
            Comment [ A comment with security level 'Membase Inc' was removed. ]
            James Flather James Flather made changes -
            Comment [ A comment with security level 'Membase Inc' was removed. ]
            James Flather James Flather made changes -
            Comment [ A comment with security level 'Membase Inc' was removed. ]
            James Flather James Flather made changes -
            Security Private [ 10010 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-41310 [ MB-41310 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-40528 [ MB-40528 ]
            wayne Wayne Siu made changes -
            Labels approved-for-6.0.5 approved-for-6.6.1
            wayne Wayne Siu made changes -
            Link This issue blocks MB-40511 [ MB-40511 ]
            James Flather James Flather made changes -
            Link This issue relates to CBSP-3173 [ CBSP-3173 ]
            ianmccloy Ian McCloy made changes -
            Security Private [ 10010 ]
            jwalker Jim Walker made changes -
            Assignee Jim Walker [ jwalker ] Daniel Owen [ owend ]
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            owend Daniel Owen made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            owend Daniel Owen made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            wayne Wayne Siu made changes -
            Fix Version/s 6.0.5 [ 16729 ]
            wayne Wayne Siu made changes -
            Remote Link This issue links to "Page (Couchbase, Inc. Wiki)" [ 20577 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-41489 [ MB-41489 ]
            owend Daniel Owen made changes -
            Assignee Daniel Owen [ owend ] Jim Walker [ jwalker ]
            owend Daniel Owen made changes -
            Link This issue relates to MB-41471 [ MB-41471 ]
            jwalker Jim Walker made changes -
            Summary Replication of deletes with XATTRS will fail if return EWOULD_BLOCK Value eviction bucket - Replication of deletes with XATTRS will fail if return EWOULD_BLOCK
            jwalker Jim Walker made changes -
            Assignee Jim Walker [ jwalker ] Daniel Owen [ owend ]
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Resolved [ 5 ]
            owend Daniel Owen made changes -
            Link This issue backports to MB-41387 [ MB-41387 ]
            owend Daniel Owen made changes -
            Link This issue relates to CBSE-9100 [ CBSE-9100 ]
            wayne Wayne Siu made changes -
            Link This issue blocks MB-42583 [ MB-42583 ]
            ashwin.govindarajulu Ashwin Govindarajulu made changes -
            Assignee Daniel Owen [ owend ] Ashwin Govindarajulu [ ashwin.govindarajulu ]
            Status Resolved [ 5 ] Closed [ 6 ]
            wayne Wayne Siu made changes -
            Fix Version/s 6.5.2 [ 17223 ]
            abhishek.jindal Abhishek Jindal made changes -
            Link This issue relates to CBSE-9361 [ CBSE-9361 ]
            arunkumar Arunkumar Senthilnathan (Inactive) made changes -
            Labels approved-for-6.0.5 approved-for-6.6.1 approved-for-6.0.5 approved-for-6.6.1 releasenote

            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