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

Alternate provider type when bootstrapping

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • backlog-2.0, .backlog
    • 2.5.2
    • library
    • None

    Description

      When bootstrapping, the SDK will first start with the CarrierPublicationProvider and try to bootstrap on each node, quitting when bootstrapping was successful or when it runs out of nodes to try. It will then switch to HttpStreamingProvider and try to bootstrap against each node in the servers list, quitting when it successfully bootstraps or when the list runs out of nodes. If the client hasn't bootstrap by the end of this process, then it will throw a BootstrapException which derives from AggregateException.

      The problem with this approach is that Memcached buckets will always fail against CarrierPublicationProvider because GET_CONFIG is not supported by Memcached buckets. If the the server list is long, it may take some time for bootstrapping fail for each node using the CCCP provider before trying HTTPStreamingProvider and (hopefully) successfully bootstrapping.

      We already have one ticket for allowing a user to configure the client to not use CCCP (NCBC-1577), but we can improve bootstrapping in general by switching between providers when a node attempts to bootstrap.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty