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

Common Flags improperly decoding configs as a String type causing cast exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • None
    • 2.0 Beta
    • library
    • None

    Description

      When a NMV triggers a Config response, the body of the response is decoded and serialized into a string instead of BucketConfig object causing a cast exception and keeping the client from updating:

      2014-10-01 19:38:34,748 [14] ERROR Couchbase.Core.Buckets.CouchbaseBucket - System.InvalidCastException: Unable to cast object of type 'System.String' to type 'Couchbase.Configuration.Server.Serialization.BucketConfig'.
      at Couchbase.Core.Transcoders.DefaultTranscoder.Decode[T](Byte[] buffer, Int32 offset, Int32 length, Flags flags) in c:\Users\jmorris\repos\CouchbaseNetClient-Build-2.0\couchbase-net-client\Src\Couchbase\Core\Transcoders\DefaultTranscoder.cs:line 157
      at Couchbase.IO.Operations.OperationBase`1.GetConfig() in c:\Users\jmorris\repos\CouchbaseNetClient-Build-2.0\couchbase-net-client\Src\Couchbase\IO\Operations\OperationBase'.cs:line 383
      at Couchbase.Core.Buckets.CouchbaseBucket.CheckForConfigUpdates[T](IOperationResult`1 operationResult, IOperation operation) in c:\Users\jmorris\repos\CouchbaseNetClient-Build-2.0\couchbase-net-client\Src\Couchbase\Core\Buckets\CouchbaseBucket.cs:line 238
      2014-10-01 19:38:34,750 [14] DEBUG Couchbase.Core.Buckets.CouchbaseBucket - Operation retry 0 for key key1845. Reason: VBucketBelongsToAnotherServer

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            jmorris Jeff Morris
            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