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

Exception < 1024 vbuckets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0 Beta
    • 2.0 DP2
    • None
    • None

    Description

      Hey,

      I think the code probably doesn't work with 128 vbuckets as used on mac. On a linux machine with 1024 it works fine.

      Unhandled Exception:
      System.IndexOutOfRangeException: Array index is out of range.
      at Couchbase.Core.Buckets.VBucketKeyMapper.CreateVBuckets () [0x00000] in <filename unknown>:0
      at Couchbase.Core.Buckets.VBucketKeyMapper..ctor (System.Security.Cryptography.HashAlgorithm algorithm, System.Collections.Generic.List`1 servers, Couchbase.Configuration.Server.Serialization.VBucketServerMap vBucketServerMap) [0x00000] in <filename unknown>:0
      at Couchbase.Core.Buckets.VBucketKeyMapper..ctor (System.Collections.Generic.List`1 servers, Couchbase.Configuration.Server.Serialization.VBucketServerMap vBucketServerMap) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.CouchbaseConfigContext.LoadConfig (IBucketConfig bucketConfig) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.ConfigContextBase..ctor (IBucketConfig bucketConfig, Couchbase.Configuration.Client.ClientConfiguration clientConfig, System.Func`2 ioStrategyFactory, System.Func`3 connectionPoolFactory, System.Func`4 saslFactory) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.CouchbaseConfigContext..ctor (IBucketConfig bucketConfig, Couchbase.Configuration.Client.ClientConfiguration clientConfig, System.Func`2 ioStrategyFactory, System.Func`3 connectionPoolFactory, System.Func`4 saslFactory) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (IBucketConfig bucketConfig) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) [0x00000] in <filename unknown>:0
      at Couchbase.Core.ClusterManager.CreateBucket (System.String bucketName, System.String password) [0x00000] in <filename unknown>:0
      at Couchbase.Core.ClusterManager.CreateBucket (System.String bucketName) [0x00000] in <filename unknown>:0
      at Couchbase.CouchbaseCluster.OpenBucket (System.String bucketname) [0x00000] in <filename unknown>:0
      at couchbase_net_client_example.Program.Main (System.String[] args) [0x00017] in /Users/michaelnitschinger/Downloads/couchbase-net-client-2.0-dp2-example/couchbase-net-client-example/Program.cs:17
      [ERROR] FATAL UNHANDLED EXCEPTION: System.IndexOutOfRangeException: Array index is out of range.
      at Couchbase.Core.Buckets.VBucketKeyMapper.CreateVBuckets () [0x00000] in <filename unknown>:0
      at Couchbase.Core.Buckets.VBucketKeyMapper..ctor (System.Security.Cryptography.HashAlgorithm algorithm, System.Collections.Generic.List`1 servers, Couchbase.Configuration.Server.Serialization.VBucketServerMap vBucketServerMap) [0x00000] in <filename unknown>:0
      at Couchbase.Core.Buckets.VBucketKeyMapper..ctor (System.Collections.Generic.List`1 servers, Couchbase.Configuration.Server.Serialization.VBucketServerMap vBucketServerMap) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.CouchbaseConfigContext.LoadConfig (IBucketConfig bucketConfig) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.ConfigContextBase..ctor (IBucketConfig bucketConfig, Couchbase.Configuration.Client.ClientConfiguration clientConfig, System.Func`2 ioStrategyFactory, System.Func`3 connectionPoolFactory, System.Func`4 saslFactory) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.CouchbaseConfigContext..ctor (IBucketConfig bucketConfig, Couchbase.Configuration.Client.ClientConfiguration clientConfig, System.Func`2 ioStrategyFactory, System.Func`3 connectionPoolFactory, System.Func`4 saslFactory) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (IBucketConfig bucketConfig) [0x00000] in <filename unknown>:0
      at Couchbase.Configuration.Server.Providers.CarrierPublication.CarrierPublicationProvider.GetConfig (System.String bucketName, System.String password) [0x00000] in <filename unknown>:0
      at Couchbase.Core.ClusterManager.CreateBucket (System.String bucketName, System.String password) [0x00000] in <filename unknown>:0
      at Couchbase.Core.ClusterManager.CreateBucket (System.String bucketName) [0x00000] in <filename unknown>:0
      at Couchbase.CouchbaseCluster.OpenBucket (System.String bucketname) [0x00000] in <filename unknown>:0
      at couchbase_net_client_example.Program.Main (System.String[] args) [0x00017] in /Users/michaelnitschinger/Downloads/couchbase-net-client-2.0-dp2-example/couchbase-net-client-example/Program.cs:17
      The application was terminated by a signal: SIGHUP

      Attachments

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

        Activity

          People

            jmorris Jeff Morris
            daschl Michael Nitschinger
            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