Uploaded image for project: 'Java DCP Client'
  1. Java DCP Client
  2. JDCP-241

Client fails to auto-restart a stream if last message was a snapshot marker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 0.48.0
    • None
    • None
    • 1

    Description

      Scenario:

      1. Client receives seqno 1.
      2. Client receives snapshot marker for snapshot [2-2]
      3. Channel disconnects (maybe Couchbase node is restarted) and the client attempts to auto-reconnect.
      4. Reconnect fails, because the client tries to create a stream offset with seqno 1, which is not within the snapshot [2-2]

      If this happens, the DCP client stops streaming from the affected partition.

      Possible fix is to track pending snapshots separately, and only promote them to "current" after the client's seqno advances to within the pending snapshot.

       

      Attachments

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

        Activity

          People

            david.nault David Nault
            david.nault David Nault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty