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

Pause hung with timer handler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Critical
    • 6.6.0
    • 6.6.0
    • eventing
    • None
    • Untriaged
    • 1
    • Unknown

    Description

      Build: 6.6.0-7854

      While testing some scenario , encountered pause hung on vagrant machine

      function OnUpdate(doc, meta) {
          var expiry = new Date();
          expiry.setSeconds(expiry.getSeconds() + 30);
          if (meta.id.includes("_")){
              var res = meta.id.split("_")[1];
              if(parseInt(res)%5==0){
                  var context = {docID : meta.id, random_text : 'e6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0R7Aumoe6cZZGHuh0'};
                  createTimer(timerCallback,  expiry, meta.id, context);
                  }
          }
      }
      function OnDelete(meta) {
          var expiry = new Date();
          expiry.setSeconds(expiry.getSeconds() + 30);
          if (meta.id.includes("_")){
              var res = meta.id.split("_")[1];
              if(parseInt(res)%5==0){
                  var context = {docID : meta.id};
                  var cancelled=cancelTimer(NDtimerCallback,meta.id);
                  if(cancelled){
                  createTimer(NDtimerCallback,  expiry, meta.id, context);
                  }
              }
          }    
      }
      function NDtimerCallback(context) {
          delete dst_bucket[context.docID];
      }
      function timerCallback(context) {
          dst_bucket[context.docID] = 'from timerCallback';
      } 

      API status

      {
          "apps": [
              {
                  "composite_status": "pausing",
                  "name": "timer_op",
                  "num_bootstrapping_nodes": 0,
                  "num_deployed_nodes": 1,
                  "deployment_status": true,
                  "processing_status": false
              }
          ],
          "num_eventing_nodes": 1
      } 

      Attachments

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

        Activity

          People

            vikas.chaudhary Vikas Chaudhary
            vikas.chaudhary Vikas Chaudhary
            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