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

[CX] Posting multiple requests using curl command to http://localhost:8095/analytics/service hangs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • CBAS DP
    • CBAS DP
    • analytics
    • None
    • Untriaged
    • Centos 64-bit
    • No
    • CX Sprint 20

    Description

      After starting the local cluster on my centos box, I tried issuing curl command:
      curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
       
      where file.txt contains:
      drop dataverse couchbase;
      create dataverse couchbase;
      use couchbase;
      create type `value` as open{};
      create type meta as open{
       id:string,
       vbid:int32,
       seq:int64,
       cas:int64,
       expiration:int32,
       flags:int32,
       rev:int64,
       lock:int32
      };
      create dataset multiple(`value`) with meta(meta) primary key meta().id;
      create feed multiple_feed using `com.couchbase.analytics.CouchbaseConnectorFactory`(
       ("bucket"="multiple_table_db_4676_simple_table_1"),
       ("nodes"="127.0.0.1"),
       ("password"="")
       );
      connect feed multiple_feed to dataset multiple;
       
      multiple_table_db_4676_simple_table_1 is name of the bucket in cluster.
       
      1. I got this error once:
      {
      	"requestID": "2700f165-4b65-46ef-9a6b-9a68375cd719",
      	"signature": "*",
      	"errors": [{ 
      	"code": "1",
      	"msg": "Failure in feed"
      	}],
      	"status": "fatal",
      	"metrics": {
      		"elapsedTime": "536.714096ms",
      		"executionTime": "535.300588ms",
      		"resultCount": "0",
      		"resultSize": "0"
      	}
      }
       
       
      2. Second time, it succeeded:
      {
      	"requestID": "032ec438-b13b-4e07-ae2b-47f66f9dc346",
      	"signature": "*",
      	"status": "success",
      	"metrics": {
      		"elapsedTime": "680.375608ms",
      		"executionTime": "679.710953ms",
      		"resultCount": "0",
      		"resultSize": "0"
      	}
      }
       
      3. Tried issuing same curl command 3 more times, it hangs in 3rd or 4th time. 
      Attaching logs.
      
      

      Attachments

        1. file.txt
          0.5 kB
        2. logs.tar
          850 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            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