Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2941

Use wire version instead of server version to detect wire protocol changes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.10.0
    • Affects Version/s: 3.8.1
    • Component/s: Wire Protocol
    • None

      When using sessions like they are used in this code, if the server's buildInfo indicates it does not support sessions, in my case 0.0.0 in a development build, the driver will silently fail. As a consequence, the driver accepted my configuration for sessions with causal consistency, but did not provide me causally consistent reads.

      Using buildInfo to check for features appears to contradict the specification for How to Check Whether a Deployment Supports Sessions. The driver should either report an error in this case or not depend on buildInfo for feature support.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            louis.williams@mongodb.com Louis Williams
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: