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

Can OnError() EOF callbacks with EOF's be safely ignored?

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • None
    • master
    • cbdatasource
    • None

    Description

      When we see OnError() callbacks in the receiver like:

       

      2017-05-02T17:44:28.418-04:00 WARNING: Feed%!(EXTRA string=Error processing DCP stream: %v, *errors.errorString=pkt.Receive, err: EOF) – base.(*DCPReceiver).OnError() at dcp_feed.go:123

       

       

      can we safely ignore it?  Eg, will the DCP stream get restarted and no mutations will be missed?

       

      Also, if it can be safely ignored, this raises the question of how to differentiate between OnError() callbacks that can be ignored and ones that need to somehow be dealt with?  One way of dealing with them for Sync Gateway is to put the database in "offline" state and stop accepting new writes.  

       

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            traun Traun Leyden (Inactive)
            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