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

Some timers are missed in system test even though we have received the mutations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.0.0
    • 5.5.0
    • eventing
    • Toy build provided by gautham
    • Untriaged
    • Centos 64-bit
    • Checked with @abhishek, there are no relevant logs that could be used to debug this.
    • No

    Description

      Steps to Repro:
      1) Created 3 function :- bucket op, cron timer and doc timer
      2) Cron timer handler code.

      function OnUpdate(doc, meta) {
          //log('creating document on dst : ', meta.id);
          var expiry = Math.round((new Date()).getTime() / 1000) + 5;
          cronTimer(NDtimerCallbackCreate, meta.id, expiry);
      }
      function OnDelete(meta) {
          //log('deleting document: ', meta.id);
          var expiry = Math.round((new Date()).getTime() / 1000) + 180;
          cronTimer(NDtimerCallbackN1QL, meta.id, expiry);
      }
      function NDtimerCallbackCreate(docid, expiry) {
          dst_bucket3[docid] = 'from NDtimerCallbackCreate';
      }
      function NDtimerCallbackN1QL(docid, expiry) {
          delete dst_bucket3[docid];
      }
      

      3) Created 3 million docs on all the source buckets.
      4) All the docs got created on bucket op and doc timer destination buckets.
      5) 2 docs were missing on dst bucket of cron timer.

      Abhishek Singh did a initial triage. It was seen 2 of docs created on metadata bucket for those mutations had null value.

      {
            "id": "cron_timer_op::2017-12-14T15:05:05Z",
            "key": [
              null,
              null,
              null
            ],
            "value": null
          },
          {
            "id": "cron_timer_op::2017-12-14T15:07:11Z",
            "key": [
              null,
              null,
              null
            ],
            "value": null
          },
      

      Attachments

        Issue Links

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

          Activity

            People

              vikas.chaudhary Vikas Chaudhary
              Balakumaran.Gopal Balakumaran Gopal
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty