Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-720

n1ql threshold logging does not work in node sdk 2.6.11

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Fix
    • Major
    • 3.2.0
    • 2.6.11, 3.0.6, 3.0.7
    • lcb, library
    • None
    • 1

    Description

      I'm using node sdk 2.6.11 and am not able to get n1ql threshold logging to work.  Tracing threshold is 1 micro second and flush interval is 1 second.  I ran trivial test code (with LCB_LOGLEVEL=5) for 10 seconds and did not see any operations over threshold message.

      Here is the code:

      'use strict'; 
       
      const couchbase = require('couchbase'); 
      const cluster = new couchbase.Cluster('couchbase://localhost/travel-sample?tracing_threshold_n1ql=0.000001&tracing_threshold_queue_flush_interval=1'); 
       
      cluster.authenticate('admin', 'password'); const bucket = cluster.openBucket('travel-sample'); 
       
      const qs = "SELECT * from `travel-sample` WHERE name = 'Locair';"; 
      const q = couchbase.N1qlQuery.fromString(qs); 
       
      bucket.query(q, function(err, rows) { 
       if (err) { 
           console.log(err); 
           process.exit(1); 
       } 
       
       console.log(rows); 
      });

       

      I'm attaching the debug logs.
       

      Attachments

        Issue Links

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

          Activity

            People

              brett19 Brett Lawson
              hitesh.walia Hitesh Walia
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty