Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1547

BatchCursor panic on clearBatch and Close

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      Trace in dev comment

      First panic is in (*BatchCursor).clearBatch(...) (inlined)
      Second is after we panic there and in a defer try to close the cursor (*BatchCursor).Close at bc.currentBatch.Data = nil
      Seems like currentBatch somehow became nil and panicked twice accessing it

      I'm thinking there's some condition where (cs *ChangeStream) executeOperation( calls NewBatchCursor but there's no error which puts it in a bad state for the next Next/TryNext.

      Attachments

        Activity

          People

            Unassigned Unassigned
            eric.daniels@mongodb.com Eric Daniels (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: