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

Eventing: Function creation failed with ERR_COLLECTION_MISSING

    XMLWordPrintable

Details

    Description

      Issue seen for build sanity run on Debian 9.
      Build - 7.1.0 - 1521

      QE TEST

      ./testrunner -i node_conf.ini -p get-cbcollect-info=True,get-couch-dbinfo=True,skip_cleanup=False,skip_log_scan=False,skip_security_scan=False -t eventing.eventing_sanity.EventingSanity.test_pause_resume_execution,nodes_init=4,services_init=kv-eventing-index-n1ql,dataset=default,groups=simple,reset_services=True,skip_cleanup=True,non_default_collection=True,java_sdk_client=True
      

      STEPS
      Collection dst_bucket.dst_bucket.dst_bucket is created.
      Function creation failed with ERR_COLLECTION_MISSING.

      01:31:07 [2021-10-18 13:01:07,081] - [rest_client:671] INFO - http://172.23.121.50:8091/pools/default/buckets/dst_bucket/scopes/dst_bucket/collections with params: name=dst_bucket
      01:31:07 [2021-10-18 13:01:07,081] - [rest_client:682] INFO - Collection created dst_bucket->dst_bucket->dst_bucket manifest:{'uid': '2'}
      01:31:07 [2021-10-18 13:01:07,154] - [rest_client:1055] ERROR - POST http://172.23.121.65:8096/api/v1/functions/Function_954851377_test_pause_resume_execution body: b'{"appname": "Function_954851377_test_pause_resume_execution", "appcode": "function OnUpdate(doc, meta) {\\n    log(\'document\', doc);\\n    dst_bucket[meta.id] = \'hello world\';\\n}\\nfunction OnDelete(doc) {\\n}", "depcfg": {"buckets": [{"alias": "dst_bucket", "bucket_name": "dst_bucket", "scope_name": "dst_bucket", "collection_name": "dst_bucket", "access": "rw"}], "metadata_bucket": "metadata", "metadata_scope": "metadata", "metadata_collection": "metadata", "source_bucket": "src_bucket", "source_scope": "src_bucket", "source_collection": "src_bucket", "curl": []}, "settings": {"checkpoint_interval": 20000, "cleanup_timers": false, "dcp_stream_boundary": "everything", "deployment_status": false, "description": "Sample Description", "log_level": "INFO", "skip_timer_threshold": 86400, "sock_batch_size": 1, "tick_duration": 5000, "timer_processing_tick_interval": 500, "timer_worker_pool_size": 3, "worker_count": 3, "processing_status": false, "cpp_worker_thread_count": 1, "execution_timeout": 20, "data_chan_size": 10000, "worker_queue_cap": 100000, "use_memory_manager": true, "deadline_timeout": 21, "timer_storage_chan_size": 10000, "dcp_gen_chan_size": 10000, "language_compatibility": "6.6.2"}, "function_scope": {"bucket": "src_bucket", "scope": "src_bucket"}}' headers: {'Content-type': 'application/json', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA=='} error: 500 reason: unknown b'{\n "name": "ERR_COLLECTION_MISSING",\n "code": 56,\n "description": "Collection does not exist in the cluster",\n "attributes": null,\n "runtime_info": {\n  "code": 56,\n  "info": "Keyspace bucket: dst_bucket scope: dst_bucket collection: dst_bucket used for binding: dst_bucket doesn\'t exist"\n }\n}' auth: Administrator:password
      

      This failure is intermittent.

      Attachments

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

        Activity

          People

            sujay.gad Sujay Gad
            sujay.gad Sujay Gad
            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