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

Eventing: Function deployment fails with ERR_APP_NOT_FOUND_TS

    XMLWordPrintable

Details

    Description

      QE TEST

      ./testrunner -i /tmp/testexec.18455.ini -p get-cbcollect-info=False,get-cbcollect-info=True -t eventing.eventing_rqg.EventingRQG.test_random_n1ql,nodes_init=4,services_init=kv-eventing-index-n1ql,template_file=b/resources/rqg/simple_table_db/query_tests_using_templates/query_10000_fields.txt.zip,dataset=default,groups=simple,reset_services=True,skip_cleanup=True,number_of_handler=3,number_of_queries=50,get-cbcollect-info=False
      

      STEPS
      Handler deployment is tried as soon as function is created.

      2021-10-17 23:58:48 | INFO | MainProcess | Thread-225 | [eventing_base.create_save_function_body] saving function b'{\n "code": 0,\n "info": {\n  "status": "Stored function: \'Function_956132776_test_random_n1ql101721235847359174\' in metakv",\n  "warnings": null\n }\n}'
      2021-10-17 23:58:48 | INFO | MainProcess | Thread-225 | [eventing_base.deploy_function] Deploying the following handler code : Function_956132776_test_random_n1ql101721235847359174 with 
      bindings: {'buckets': [{'alias': 'dst_bucket', 'bucket_name': 'dst_bucket', 'access': 'rw'}], 'metadata_bucket': 'metadata', 'source_bucket': 'src_bucket', 'curl': []} and 
      settings: {'checkpoint_interval': 20000, 'cleanup_timers': False, 'dcp_stream_boundary': 'from_now', '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': 1, 'processing_status': False, 'cpp_worker_thread_count': 1, 'execution_timeout': 60, 'data_chan_size': 10000, 'worker_queue_cap': 100000, 'use_memory_manager': True, 'deadline_timeout': 61, 'timer_storage_chan_size': 10000, 'dcp_gen_chan_size': 10000, 'language_compatibility': '6.6.2'}
      2021-10-17 23:58:48 | INFO | MainProcess | Thread-225 | [eventing_base.deploy_function] 
      function OnUpdate(doc, meta) {
          try{
              var query=SELECT NUMERIC_FIELD_LIST, STRING_FIELD_LIST, BOOL_FIELD_LIST FROM src_bucket WHERE (NUMERIC_FIELD BETWEEN LOWER_BOUND_VALUE and UPPER_BOUND_VALUE OR STRING_FIELD = STRING_VALUES);
              //query.execQuery();
              for(var raw of query){
              }
              var key = Date.now()+Math.random();
              dst_bucket[key]={'passed_query' : query};
          }
          catch(e){
              var key = Date.now()+Math.random();
              dst_bucket[key]={'failed_query' : query};
          }
      }
      2021-10-17 23:58:48 | ERROR | MainProcess | Thread-225 | [rest_client._http_request] POST http://172.23.104.237:8096/api/v1/functions/Function_956132776_test_random_n1ql101721235847359174/deploy body:  headers: {'Content-type': 'application/json', 'Authorization': 'Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA=='} error: 404 reason: unknown b'{\n "name": "ERR_APP_NOT_FOUND_TS",\n "code": 13,\n "description": "Function not found in temporary store",\n "attributes": null,\n "runtime_info": {\n  "code": 13,\n  "info": "Function: Function_956132776_test_random_n1ql101721235847359174 not found"\n }\n}' auth: Administrator:password
      

      PFA logs for eventing node.

      Attachments

        For Gerrit Dashboard: MB-48963
        # Subject Branch Project Status CR V

        Activity

          People

            ankit.prabhu Ankit Prabhu
            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