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

Only "unpause" the producer stream if it may progress

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • Morpheus
    • couchbase-bucket
    • None
    • Untriaged
    • 0
    • Unknown

    Description

      In the current implementation the DcpProducer use the following logic:

      unpause()
      if may progress
          return
      pause() 

      By unconditionally unpause before checking if any progress may be done we loose the information on how long we actually pause. This should be changed to:

      if may progress
         unpause
         return
       
      if not already paused
         pause 

      Now we can keep track of the duration we're continuously paused

      Attachments

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

        Activity

          People

            trond Trond Norbye
            trond Trond Norbye
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty