title: Couchbase: Cannot perform operations on a shutdown bucket
body: <p>I am getting this error when try to insert 2M objects via node.js into Couchbase. 1M works fine.</p>
  
  <blockquote>
    <p>C:\Users\Administrator\Desktop\node_modules\couchbase\lib\bucket.js:
    728 throw new Error('cannot perform operations on a shutdown bucket');</p>
  </blockquote>
  
  <p>I am using Couchbase 3.0.1, node.js 2.0.2 SDK.</p>
  
  <p>This is the code:</p>
  
  <pre><code>     var Couchbase = require('couchbase');
  
  var myCluster = new Couchbase.Cluster('couchbase://10.0.0.103,10.0.0.102,10.0.0.101,');
  
  var myBucket = myCluster.openBucket('rre');
  
  
     for (var i = 0;i&lt;1000000;i++)
     {
  
  
  
  
  
      myBucket.insert('dwhtryrdue_'+i,  {
      "guid": "003dddbf-da50-46d4-a2aa-319677b5d2be",
      "CampaignID": 22,
      "ZoneID": 29,
      "AdvertiserID": 30,
      "BannerID": 36,
      "UserID": 32,
      "ClickIP": "Bette",
      "ClickHost": "Jerry",
      "ClickReferringURL": "Dejesus",
      "ClickDateTime": "2014-06-09T12:53:22 -00:00",
      "ClickCountry": "Central African Republic",
      "ClickState": "Kentucky",
      "ClickBrowser": "Chrome"
      }, function(err, res) {
  
      });
  
      }
  </code></pre>