Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-4536

creating a flawed design doc hangs cluster

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Minor
    • 2.0-developer-preview-4
    • 2.0-developer-preview-3
    • couchbase-bucket
    • Security Level: Public
    • None
    • centos 5.6 x86_64 on vmware with 2GB ram allocated

      yum install --nogpgcheck ./couchbase-server-community_x86_64_2.0.0-dev-preview-3.rpm

    Description

      after setting up the cluster, I ran some unit tests for my php 5.3 couchbase client. Created some views, populated test data, queried the views, then deleted the views as part of my test teardown. But my test left the empty design document. After running this test, the memcache port only returns errors, no data, and the admin panel for couchbase says the one node in my test cluster is pending. CPU usage spikes and often hangs at 100%. If I go in and delete the empty design document, everything recovers.

      Can reproduce the issue by doing:

      curl "http://127.0.0.1:8092/default/_design/test72/" -X PUT -d '

      {"views":[]}

      ' -v

      in php an empty associative array (think hash table) is the same as an empty array in json encoding: []
      An empty object is represented as: {}

      This curl call doesn't cause the issue:

      curl "http://127.0.0.1:8092/default/_design/test72/" -X PUT -d '{"views":{}}' -v

      I have patched my client to avoid the problem, but figured I should report it so this issue doesn't cause the cluster to hang for someone else making the same mistake.

      Attachments

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

        Activity

          People

            FilipeManana Filipe Manana (Inactive)
            72squared John Loehrer (Inactive)
            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