Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-171

Creating a bucket and then connecting to it after callback succeeds results in failure to connect to new bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • 2.0.2
    • library
    • Security Level: Public
    • None

    Description

      Doing the following:

      [code]
      var Cluster = new couchbase.Cluster('yourcluster');
      var Manager = Cluster.manager('admin','pass');

      Manager.createBucket('bukkit',{},function(err){
      if(!err){
      Cluster.openBucket('bukkit');
      // [Error: failed to connect to bucket] code: 22

      setTimeout(function()

      {Cluster.openBucket('bukkit');}

      ,5000);
      // Connection successful
      }
      });
      [code]

      Trying to connect to the newly created bucket inside the callback fails, but waiting a few seconds after the callback triggers the connection to the bucket will be successful

      Attachments

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

        Activity

          People

            brett19 Brett Lawson
            EnzoMartin78 Enzo Martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty