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

[CBAS] Analytics processes hang and clients get socket timed out

    XMLWordPrintable

Details

    • Untriaged
    • Yes
    • CX Sprint 45, CX Sprint 46

    Description

      Build : 597

      Issue : In a series of testcases for disconnecting bucket with different permutations, at a certain point, we start seeing
      ERROR - socket error while connecting to http://10.111.151.102:8095/analytics/service error timed out

      This is 100% reproducible with testrunner. Follow the steps given below to reproduce the issue.
      1. Create a conf file like

      cbas.cbas_functional_tests.CBASFunctionalTests: 
          # Disconnect Bucket tests
          test_disconnect_bucket,cluster=D
          test_disconnect_bucket,disconnect_if_connected=True,cluster=D
          test_disconnect_bucket,cbas_bucket_name_invalid=travel_invalid,error=A bucket with this name travel_invalid doesn't exist.,cluster=D
        test_disconnect_bucket,cbas_bucket_name_invalid=travel_invalid,disconnect_if_connected=True,error=A bucket with this name travel_invalid doesn't exist.,cluster=D
          test_disconnect_bucket_already_disconnected,error=The bucket travel is not connected.,cluster=D
          test_disconnect_bucket_already_disconnected,disconnect_if_connected=True,cluster=D
      

      2. Create an ini file like

      [global]
      username:root
      password:couchbase
      #username:Administrator
      #password:Membase123
      port:8091
      n1ql_port:8093
      index_port:9102
       
      data_path=/data
      index_path=/data
       
      [membase]
      rest_username:Administrator
      rest_password:password
       
      [servers]
      1:_1
       
      [_1]
      ip:10.111.151.101
      services:kv,n1ql,index
       
      [cbas]
      ip:10.111.151.102
      port:8095
      username:root
      password:couchbase
      

      3. Setup testrunner on your Mac - Follow the instructions here : https://github.com/couchbase/testrunner

      4. Clone testrunner - https://github.com/couchbase/testrunner

      5. Run testrunner - cd testrunner; ./testrunner.py -i <your ini file> -c <your conf file>

      There should be failures from the 5th test.

      Analytics logs are attached.

      At the point of failure, the following can be seen in the red-service.log and blue-service.log
      2017-03-16T11:08:43.522Z INFO CBAS.runtime.BucketOperatorNodePushable [Executor-30:red] (Default.travel(CouchbaseMetadataExtension))[0]:BucketOperatorDescriptor aborting, acquiring start semaphore...
      2017-03-16T11:10:48.107Z INFO CBAS.work.WorkQueue [Worker:red] Executing: ApplicationMessage: nodeID: red
      2017-03-16T11:10:48.107Z INFO CBAS.messaging.NCMessageBroker [Worker:red] Received message: ActiveManagerMessage
      2017-03-16T11:10:48.109Z INFO CBAS.runtime.BucketOperatorNodePushable [Executor-31:red] (Default.travel(CouchbaseMetadataExtension))[0]:BucketOperatorDescriptor aborting, acquiring start semaphore...
      2017-03-16T11:12:05.379Z INFO CBAS.work.WorkQueue [Worker:red] Executing: ApplicationMessage: nodeID: red
      2017-03-16T11:12:05.380Z INFO CBAS.messaging.NCMessageBroker [Worker:red] Received message: ActiveManagerMessage
      2017-03-16T11:12:05.382Z INFO CBAS.runtime.BucketOperatorNodePushable [Executor-32:red] (Default.travel(CouchbaseMetadataExtension))[0]:BucketOperatorDescriptor aborting, acquiring start semaphore...

      Attachments

        1. blue-service.log
          751 kB
        2. cc.log
          575 kB
        3. jstack.zip
          13 kB
        4. logs_build613.zip
          644 kB
        5. red-service.log
          624 kB
        6. reopened_logs.zip
          124 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Abdullah.Alamoudi Abdullah Alamoudi [X] (Inactive)
            mihir.kamdar Mihir Kamdar (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