Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-5321

[N1QL] setting query timeout from rest is in nanoseconds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Mad Hatter, 6.6.0
    • None
    • query
    • 6.5.0-3343
    • DOC-2019-S22-Nov01, DOC-2020-S10-May31
    • 1

    Description

      To change the query timeout via rest i HAVE to use nanoseconds

      curl http://172.23.104.110:8093/admin/settings?internal=ok -d '{"timeout":500000000}' -u Administrator:password
      

      ↑ sets a 500 ms timeout , this does not align with what the documentation says

      curl http://hostname:8093/admin/settings -d '{"timeout":"30m"}' -u user:pword
      

      ↑ documentation example

      curl http://172.23.104.110:8093/admin/settings -d '{"timeout":"30m"}' -u Administrator:password
      {"caller":"set_params:201","code":2032,"key":"admin.setting_type_error","message":"Incorrect value 30m for setting: timeout"}
      

      curl http://172.23.104.110:8093/admin/settings -d '{"timeout":"5s"}' -u Administrator:password
      {"caller":"set_params:201","code":2032,"key":"admin.setting_type_error","message":"Incorrect value 5s for setting: timeout"}
      

      Attachments

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

        Activity

          People

            simon.dew Simon Dew
            ajay.bhullar Ajay Bhullar
            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