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

Pause hung with timer handler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 6.6.0
    • Fix Version/s: 6.6.0
    • Component/s: eventing
    • Labels:
      None
    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      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

          vikas.chaudhary Vikas Chaudhary created issue -
          jeelan.poola Jeelan Poola made changes -
          Field Original Value New Value
          Assignee Jeelan Poola [ jeelan.poola ] Ankit Prabhu [ ankit.prabhu ]
          siri Sriram Melkote (Inactive) made changes -
          Summary Pause hunged with timer handler Pause hung with timer handler
          ankit.prabhu Ankit Prabhu made changes -
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]
          ankit.prabhu Ankit Prabhu made changes -
          Assignee Ankit Prabhu [ ankit.prabhu ] Vikas Chaudhary [ vikas.chaudhary ]
          raju Raju Suravarjjala made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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