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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.10.0
    • 3.8.1
    • Wire Protocol
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: