Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2232

Read preference allows int64_t maxStalenessSeconds but URI is limited to int32_t

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.6.3
    • Component/s: uri
    • None

      When maxStalenessSeconds was reverted from a double to an integer and the 90 second limit was added (SPEC-786), the patch for CDRIVER-1933 reverted the read preference type to int64_t but URI parsing was changed to int32_t (with error reporting for 64-bit integers).

      Was this intentional or an inadvertent inconsistency? The specification does not refer to any upper limit for the option, and schwerin's comment in SPEC-786 implies that a 64-bit value is perfectly valid.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: