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

[Views] View retrieval GET request returns status code 500 with {"reason":"killed"}

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 7.2.6
    • 7.1.6, 7.2.3
    • view-engine
    • Operating System : Debian GNU/Linux 11 (bullseye)
      Couchbase Enterprise Edition build 7.2.3-6705

    Description

      Steps to reproduce

      1. Created a 2 node kv cluster
      2. Created a couchstore bucket named "default"
      3. Loaded 5000 items onto the bucket
      4. Created a design doc named "dev_ddoc1"
      5. Created 5 views
      6. Rebalanced in 3 kv nodes
      7. Queried views during rebalance
      8. Post rebalance tried to access the endpoint default/_design/dev_ddoc1/_view/default_view1

      GET http://172.23.216.147:8092/default/_design/dev_ddoc1/_view/default_view1?full_set=true&stale=false&connectionTimeout=60000 body:  headers: {'Accept': '*/*', 'Connection': 'close', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==', 'Content-Type': 'application/json'} 
       
      error: 500 reason: unknown_error {"error":"unknown_error","reason":"killed"} 

       

      Observing an error and stack trace in ns_server.couchdb.log

      [couchdb:error,2023-11-05T10:15:29.857-08:00,couchdb_ns_1@cb.local:<0.2019.0>:couch_log:error:33]Uncaught error in HTTP request: {exit,killed}
      Stacktrace: <ud>[{couch_index_merger,'-do_query_index/4-after$^5/0-0-',6,                         [{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couch_index_merger/src/couch_index_merger.erl"},                          {line,282}]},     {couch_index_merger,do_query_index,4,                         [{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couch_index_merger/src/couch_index_merger.erl"},                          {line,225}]},     {couch_index_merger,query_index_loop,5,                         [{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couch_index_merger/src/couch_index_merger.erl"},                          {line,125}]},     {capi_indexer,design_doc_view_loop,7,                   [{file,"src/capi_indexer.erl"},{line,51}]},     {request_tracker,request,2,[{file,"src/request_tracker.erl"},{line,40}]},     {couch_httpd,handle_request,7,                  [{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/couchdb/couch_httpd.erl"},                   {line,228}]},     {mochiweb_http,headers,6,                    [{file,"/home/couchbase/jenkins/workspace/couchbase-server-unix/couchdb/src/mochiweb/mochiweb_http.erl"},                     {line,153}]},     {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]</ud>[couchdb:info,2023-11-05T10:15:29.858-08:00,couchdb_ns_1@cb.local:<0.2019.0>:couch_log:info:30]<ud>"172.23.96.255"</ud> -- GET <ud>"/default/_design/dev_ddoc1/_view/default_view1?full_set=true&stale=false&connectionTimeout=60000"</ud> 500 

       

      This issue is not very consistent. Also observed similar behavior in recent test runs for 7.1.6

       


       

      TAF Script to reproduce

      guides/gradlew --refresh-dependencies testrunner -P jython=/opt/jython/bin/jython -P 'args=-i /data/workspace/debian-p0-durability-vset00-00-rebalance_in_persist_active_6.5_P1/testexec.18716.ini GROUP=P1;durability,durability=MAJORITY_AND_PERSIST_TO_ACTIVE,get-cbcollect-info=True,infra_log_level=info,log_level=info,bucket_storage=couchstore,upgrade_version=7.2.3-6705,sirius_url=http://172.23.120.103:4000 -t rebalance_new.rebalance_in.RebalanceInTests.rebalance_in_with_queries,upgrade_version=7.2.3-6705,nodes_in=3,GROUP=P1;durability,get-cbcollect-info=True,replicas=1,durability=MAJORITY_AND_PERSIST_TO_ACTIVE,log_level=info,bucket_storage=couchstore,blob_generator=False,nodes_init=2,num_items=10000,sirius_url=http://172.23.120.103:4000,infra_log_level=info

      Job name : durability-rebalance_in_persist_active_6.5_P1

      Job ref link : http://cb-logs-qe.s3-website-us-west-2.amazonaws.com/7.2.3-6705/jenkins_logs/test_suite_executor-TAF/282583/

       

      Attachments

        Issue Links

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

          Activity

            People

              ankit.prabhu Ankit Prabhu
              raghav.sk Raghav S K
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty