Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-1869

watch methods unaffected by :max_await_time_ms

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.18.0
    • Affects Version/s: None
    • Component/s: Spec Comp
    • Labels:
      None
    • Minor Change

      When using collection.watch, the max_await_time_ms option has no impact on the maxAwaitTimeMS used by server.  Actual wait time is always 1000ms default.

      cursor = client[:batches].watch([],{max_await_time_ms: 5000})
      enum = cursor.to_enum
      batch = enum.try_next #blocks for max 1000ms

      A quick glance looks like mapping is always to maxTimeMS instead of maxAwaitTimeMS as per the online docs[link title|https://docs.mongodb.com/manual/reference/method/db.collection.watch/].

       

      :max_await_time_ms => 'maxTimeMS'

       

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            john08burke John Burke
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: