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

Couchbase client returning wrong documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 2.1.2
    • 2.1.0
    • library
    • Server: Two Couchbase 3.0.3-1716 Enterprise Edition instances each running on a Windows 2012 Server.
      Client: Several ASP.Net applications (.Net 4.5) using couchbase .Net client 2.1

    Description

      Occassionally couchbase Get requests called via the .Net client return a completely different document to the one requested. This applies both to requests for single documents and multiple documents.

      This behaviour has been validated by logging the key that was requested and comparing it to the response from the Couchbase client.

      When this error occurs, it often affects several requests at the same time. It appears that simultaneous requests sometimes get mixed up, so that the document returned for one request was actually requested in another request that was made around the same time.

      Another (possibly related) error which occurs is IndexOutOfRange exception which occasionally is thrown by the Couchbase client when requesting a key. Subsequent requests for exactly the same key usually work as expected.

      These errors occur in a production environment with several web clients which use couchbase for logging events, sessions etc. They occur relatively seldom (several times per day) compared to the total number of requests (many thousand).

      Examples:
      Requested key 1: "systemAccount_widgets"
      Response received at 2015-05-12 11:08:51,069
      Document returned: "user_821eb769-f75e-4a29-aae2-95be1c005a74"

      Requested key 2: "systemAccount_mytv"
      Response received at 2015-05-12 11:08:53,128 - two seconds later
      Document returned: "systemAccount_widgets" (i.e. document requested in earlier request!)

      Attachments

        Issue Links

          Activity

            People

              jmorris Jeff Morris
              rvanoord Reng van Oord
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty