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

[BP MB-39301] - Timer scan time keeps increasing on an idle cluster with a timer handler

    XMLWordPrintable

    Details

      Description

      Build: 6.6.0 build 7607 , passed on 6.5.1-6292

      ./testrunner -i vikas-nodes.ini -t eventing.eventing_dataset.EventingDataset.test_eventing_processes_mutations_when_mutated_through_subdoc_api_and_set_expiry_through_sdk,nodes_init=4,services_init=kv-eventing-index-n1ql,dataset=default,groups=simple,reset_services=True,skip_cleanup=True,handler_code=n1ql_op_with_timers 
       
      Exception: duplicated data in destination bucket which is not expected. Current : 3 Expected : 0  dcp_backlog : 0  TIMERS_IN_PAST : 0 lcb_exceptions : {'10.143.192.102': {}}

      Handler is without options

      function OnUpdate(doc, meta) {
          var expiry = new Date();
          expiry.setSeconds(expiry.getSeconds() + 300);
          var context = {docID : meta.id, random_text : "e6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh07Aumoe6cZZGHuh07Aumoe6cZZGHuh07Aumoe6"};
          createTimer(timerCallback,  expiry, meta.id, context);
      }
      function OnDelete(meta) {
          var expiry = new Date();
          expiry.setSeconds(expiry.getSeconds() + 300);
          var context = {docID : meta.id};
          createTimer(NDtimerCallback,  expiry, meta.id, context);
      }
      function NDtimerCallback(context) {
          var docID = context.docID;
          while (true) {
          try {
              var query = DELETE FROM dst_bucket where meta().id = $docID;
              break;
          } catch (e) {
              log(e);
              }
          }
      }function timerCallback(context) {
          var docID = context.docID;
          while (true) {
          try {
              var query = INSERT INTO dst_bucket ( KEY, VALUE ) VALUES ( $docID ,'timerCallback');
              break;
          } catch (e) {
              log(e);
              }
          }
      } 

      Stats shows we got expiry 

      "dcp_expiration": 3 

       

        Attachments

          Issue Links

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

            Activity

            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-6.6.0-7638 contains eventing commit e66b278 with commit message:
            MB-39399: fix some compilation warnings

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.0-7638 contains eventing commit e66b278 with commit message: MB-39399 : fix some compilation warnings
            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-6.6.0-7638 contains eventing-ee commit fe442b6 with commit message:
            MB-39399: advance span.start when system is idle as well

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.0-7638 contains eventing-ee commit fe442b6 with commit message: MB-39399 : advance span.start when system is idle as well
            Hide
            vikas.chaudhary Vikas Chaudhary added a comment -

            Not seeing 6.6.0-7834

            Show
            vikas.chaudhary Vikas Chaudhary added a comment - Not seeing 6.6.0-7834

              People

              Assignee:
              ankit.prabhu Ankit Prabhu
              Reporter:
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty