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

Mutation are not processing when debugger is started

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.5.0
    • 6.5.0
    • eventing
    • None

    Description

      Build: 6.5.0-4233

      • Deploy following handler

      function OnUpdate(doc, meta) {
          var request = {
         path : 'delay',
         headers: {
          "sample-header": "test"
          }
          };
          try {
             var response = curl("GET", server, request);
             log('response body received from server:', response.body);
             log('response headers received from server:', response.headers);
             log('response status received from server:', response.status);
             var res= new Uint8Array(response.body);
             if(response.status == 200){
                 dst_bucket[meta.id]=response.body;
             }
          }
          catch (e) {
             log('error:', e);
              }
      }
       
       
       
      function OnDelete(meta) {
          var request = {
         path : 'delay',
         headers: {
          "sample-header": "test"
          }
          };
          try {
             var response = curl("GET", server, request);
             log('response body received from server:', response.body);
             log('response headers received from server:', response.headers);
             log('response status received from server:', response.status);
             var res= new Uint8Array(response.body);
             if(response.status == 200){
                 delete dst_bucket[meta.id];
             }
          }
          catch (e) {
             log('error:', e);
              }
      } 
      
      

      • Start debugger (although api fails but UI shows the debug URL)

      http://10.143.190.102:8091/_p/event/startDebugger/?name=test
       
      {
       "name": "ERR_UNMARSHAL_PLD",
       "code": 16,
       "description": "Unable to unmarshal payload",
       "attributes": null,
       "runtime_info": {
        "code": 16,
        "info": "Failed to unmarshal request, err : unexpected end of JSON input"
       }
      }
      
      

      • Add doc to source bucket
      • You will get the url and then debug it , you will see there is no doc in destination and also error is not getting printed in application logs

      Error in eventing logs

      2019-09-10T00:01:57.240-07:00 [Error] Client::Get URL: http:///stopDebugger/?name=test Failed to set auth params, err: missing port in address
      2019-09-10T00:01:57.240-07:00 [Error] UTIL Failed to capture v8 debugger url from url: http:///stopDebugger/?name=test, err: missing port in address
       
       
      2019-09-10T00:02:28.297-07:00 [Error] SuperSupervisor::DebuggerCallback [1] value is nil 

      Attachments

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

        Activity

          People

            Gautham.Banasandra Gautham Banasandra (Inactive)
            vikas.chaudhary Vikas Chaudhary
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty