Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2179

LookupIn does not correctly parse config returned by NMVB

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.7.15
    • 2.7.5, 2.7.13
    • library
    • None
    • Windows server
    • 1

    Description

      The sub document API multilookup operation does not correctly handle a Not My VBucket (NMVB) response from the server.  The updated configuration from the server is not parsed correctly and the client's vbucket map is not updated.

      MultiLookup<T>.GetValue attempts to interpret the beginning portion of the configuration JSON string as a body length (SDK version 2.7.13, MultiLookup.cs line 97)

      This results in spikes in memory usage as an extremely large and unneed byte array is allocated, and an ArgumentException when attempting to read past the end of the response buffer.  The execption causes the response status to be changed from VBucketBelongsToAnotherServer to ClientFailure, which causes the configuration update logic to never be invoked.

      Attachments

        For Gerrit Dashboard: NCBC-2179
        # Subject Branch Project Status CR V

        Activity

          People

            jmorris Jeff Morris
            tfarris07 Timothy Farris
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty