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

Stream request with on-disk items doesn't work properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 3.0
    • 3.0
    • couchbase-bucket
    • Security Level: Public
    • None
    • Untriaged
    • Unknown
    • June 30 - July 18

    Description

      When doing a stream request with the on-disk items only flag (0x02) set, ep-engine does something strange that leads to a timeout in the UPR client.

      Please note that I know little about ep-engine, but here's what I found out. I've attached to log files. The no-flag.log is without the flag set, the on-disk-only-flag.log with the flag set.

      You can see in the on-disk-only-flag.log that a stream for vBuclet 0 is created twice:

      memcached<0.86.0>: Tue Apr 22 15:50:29.918776 CEST 3: (beer-sample) UPR (Producer) eq_uprq:Indexer mapreduce_view: beer-sample _design/beer (prod/main) - Stream created for vbucket 0
      memcached<0.86.0>: Tue Apr 22 15:50:38.292332 CEST 3: (beer-sample) UPR (Producer) eq_uprq:Indexer mapreduce_view: beer-sample _design/beer (prod/main) - Stream created for vbucket 0

      It seems that the UPR client receives the snapshot information already with the first stream request. It then waits for more data. The current timeout is set to 5 seconds, which is not enough, as the second stream, that seems to contain the mutations starts 8 seconds later.

      Attachments

        1. memcached.log.0.txt
          17 kB
        2. no-flag.log
          5 kB
        3. on-disk-only-flag.log
          4 kB
        4. trace.pcapng
          2.21 MB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vmx Volker Mische
            vmx Volker Mische
            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