Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1418

Query Option Scan Wait not set for sub-second times against CNG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5.0
    • None
    • None
    • None
    • 1

    Description

      Setting a small sub second scan wait time results in no scan wait time being sent as a query option:

      E.g. this test https://github.com/couchbaselabs/transactions-fit-performer/blob/ed7d034b0e21f89253bf8653253e4589a6b721cc/test-driver/src/test/java/com/couchbase/client/query/QueryOptionTest.java#L154

      Results in query options:

      read_only: true
      tuning_options {
        max_parallelism: 3
        pipeline_batch: 1
        pipeline_cap: 1
        scan_wait {
        }
        scan_cap: 10
      }
      client_context_id: "123"
      scan_consistency: SCAN_CONSISTENCY_REQUEST_PLUS
      flex_index: true
      preserve_expiry: true
      profile_mode: PROFILE_MODE_TIMINGS 

      When scan_wait should be nanos: 50000000

      Looking a the code, converting from nanos to seconds is causing small values to be set as 0. 

      Attachments

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

        Activity

          People

            david.nault David Nault
            will.broadbelt Will Broadbelt
            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