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

Design document not found error in views regression

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Yes

    Description

      Issue found in 7.0.0-3739

      Last good build: 7.0.0-3653

      Test:
      ./testrunner -i /tmp/testexec.28096.ini -p None -t view.createdeleteview.CreateDeleteViewTests.rebalance_in_and_out_with_ddoc_ops,ddoc_ops=create,test_with_view=True,num_ddocs=3,num_views_per_ddoc=2,items=200000,sasl_buckets=1,GROUP=P1,skip_log_scan=False,bucket_storage=couchstore

      console:

      '172.23.104.105:8091''172.23.104.107:8091''172.23.104.201:8091',bucket0 bucket
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.105:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.107:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.201:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [task.check] Saw vb_replica_curr_items 200000 == 200000 expected on '172.23.104.105:8091''172.23.104.107:8091''172.23.104.201:8091',bucket0 bucket
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.105:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.107:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [data_helper.direct_client] creating direct client 172.23.104.201:11210 bucket0
      2020-11-16 16:34:20 | INFO | MainProcess | Cluster_Thread | [task.check] Saw curr_items_tot 400000 == 400000 expected on '172.23.104.105:8091''172.23.104.107:8091''172.23.104.201:8091',bucket0 bucket
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] DDoc Validation Started
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc0 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc1 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc2 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc0 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc1 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] Database Document dev_ddoc2 details : {"views": {"views0": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}, "views1": {"map": "function (doc) { emit(doc.age, doc.first_name);}"}}}
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_ops_all_buckets] DDoc Validation Successful
      2020-11-16 16:34:20 | INFO | MainProcess | test_thread | [createdeleteview._verify_ddoc_data_all_buckets] DDoc Data Validation Started on bucket default. Expected Data Items 200000
      2020-11-16 16:34:21 | INFO | MainProcess | Cluster_Thread | [rest_client._query] index query url: http://172.23.104.105:8092/default/_design/dev_ddoc0/_view/views0?stale=false&full_set=true&connection_timeout=60000
      2020-11-16 16:34:26 | INFO | MainProcess | Cluster_Thread | [rest_client._query] index query url: http://172.23.104.105:8092/default/_design/dev_ddoc0/_view/views0?stale=false&full_set=true&connection_timeout=60000
      2020-11-16 16:34:28 | INFO | MainProcess | Cluster_Thread | [task.check] Server: 172.23.104.105, Design Doc: dev_ddoc0, View: views0, (200000 rows) expected, (66807 rows) returned
      [<FrameSummary file /usr/local/lib/python3.7/threading.py, line 890 in _bootstrap>, <FrameSummary file /usr/local/lib/python3.7/threading.py, line 926 in _bootstrap_inner>, <FrameSummary file lib/tasks/taskmanager.py, line 31 in run>, <FrameSummary file lib/tasks/task.py, line 104 in step>, <FrameSummary file lib/tasks/task.py, line 3068 in check>, <FrameSummary file lib/tasks/future.py, line 265 in set_exception>]
      Mon Nov 16 16:34:28 2020
      [<FrameSummary file /usr/local/lib/python3.7/threading.py, line 890 in _bootstrap>, <FrameSummary file /usr/local/lib/python3.7/threading.py, line 926 in _bootstrap_inner>, <FrameSummary file testrunner.py, line 558 in run>, <FrameSummary file /usr/local/lib/python3.7/unittest/runner.py, line 176 in run>, <FrameSummary file /usr/local/lib/python3.7/unittest/case.py, line 676 in __call__>, <FrameSummary file /usr/local/lib/python3.7/unittest/case.py, line 628 in run>, <FrameSummary file pytests/view/createdeleteview.py, line 492 in rebalance_in_and_out_with_ddoc_ops>, <FrameSummary file pytests/view/createdeleteview.py, line 275 in _verify_ddoc_data_all_buckets>, <FrameSummary file lib/couchbase_helper/cluster.py, line 644 in query_view>, <FrameSummary file lib/tasks/future.py, line 160 in result>, <FrameSummary file lib/tasks/future.py, line 111 in __get_result>]
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [basetestcase.print_cluster_stats] ------- Cluster statistics -------
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [basetestcase.print_cluster_stats] 172.23.104.105:8091 => {'services': ['kv'], 'cpu_utilization': 10.07830260166709, 'mem_free': 3112906752, 'mem_total': 4220854272, 'swap_mem_used': 0, 'swap_mem_total': 3758092288}
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [basetestcase.print_cluster_stats] 172.23.104.107:8091 => {'services': ['kv'], 'cpu_utilization': 7.583058584833883, 'mem_free': 3320852480, 'mem_total': 4220854272, 'swap_mem_used': 0, 'swap_mem_total': 3758092288}
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [basetestcase.print_cluster_stats] 172.23.104.201:8091 => {'services': ['kv'], 'cpu_utilization': 7.598475222363406, 'mem_free': 3295662080, 'mem_total': 4201844736, 'swap_mem_used': 0, 'swap_mem_total': 3758092288}
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [basetestcase.print_cluster_stats] --- End of cluster statistics ---
      2020-11-16 16:34:28 | WARNING | MainProcess | test_thread | [basetestcase.tearDown] CLEANUP WAS SKIPPED
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connecting to 172.23.104.105 with username:root, attempt#1 of 5
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connected to 172.23.104.105 as root
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] os_distro: CentOS, os_version: centos 7, is_linux_distro: True
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] extract_remote_info-->distribution_type: CentOS, distribution_version: centos 7
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connecting to 172.23.104.107 with username:root, attempt#1 of 5
      2020-11-16 16:34:28 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connected to 172.23.104.107 as root
      2020-11-16 16:34:29 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] os_distro: CentOS, os_version: centos 7, is_linux_distro: True
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] extract_remote_info-->distribution_type: CentOS, distribution_version: centos 7
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connecting to 172.23.104.136 with username:root, attempt#1 of 5
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connected to 172.23.104.136 as root
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] os_distro: CentOS, os_version: centos 7, is_linux_distro: True
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] extract_remote_info-->distribution_type: CentOS, distribution_version: centos 7
      2020-11-16 16:34:30 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connecting to 172.23.104.201 with username:root, attempt#1 of 5
      2020-11-16 16:34:31 | INFO | MainProcess | test_thread | [remote_util.ssh_connect_with_retries] SSH Connected to 172.23.104.201 as root
      2020-11-16 16:34:31 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] os_distro: CentOS, os_version: centos 7, is_linux_distro: True
      2020-11-16 16:34:31 | INFO | MainProcess | test_thread | [remote_util.extract_remote_info] extract_remote_info-->distribution_type: CentOS, distribution_version: centos 7
      2020-11-16 16:34:32 | INFO | MainProcess | test_thread | [basetestcase.tearDown] closing all ssh connections
      2020-11-16 16:34:32 | INFO | MainProcess | test_thread | [basetestcase.tearDown] closing all memcached connections
      ERROR
       
      ======================================================================
      ERROR: rebalance_in_and_out_with_ddoc_ops (view.createdeleteview.CreateDeleteViewTests)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "pytests/view/createdeleteview.py", line 492, in rebalance_in_and_out_with_ddoc_ops
          self._verify_ddoc_data_all_buckets()
        File "pytests/view/createdeleteview.py", line 275, in _verify_ddoc_data_all_buckets
          result = self.cluster.query_view(self.master, ddoc_name, view.name, query, num_items, bucket)
        File "lib/couchbase_helper/cluster.py", line 644, in query_view
          return _task.result(timeout)
        File "lib/tasks/future.py", line 160, in result
          return self.__get_result()
        File "lib/tasks/future.py", line 112, in __get_result
          raise self._exception
        File "lib/tasks/task.py", line 3045, in check
          raise QueryViewException(self.view_name, raised_error)
      membase.api.exception.QueryViewException: Error occured querying view views0: {'from': '172.23.104.107:8092', 'reason': 'Design document `_design/dev_ddoc0` missing in database `default/master`.'}{'from': '172.23.104.201:8092', 'reason': 'Design document `_design/dev_ddoc0` missing in database `default/master`.'}
       
      ----------------------------------------------------------------------
      

      Attachments

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

        Activity

          People

            artem Artem Stemkovski
            arunkumar Arunkumar Senthilnathan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty