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

ReadPrefs ignored for some commands due to case-sensitive comparison

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.11.0
    • 2.9.0
    • API
    • None

    Description

      The list of secondary-aware ('obedient') commands in DB.java uses the camel-case version of commands like dbStats and collStats. The java driver itself emits these commands in lowercase: dbstats, collstats. Thus the commands whitelist check fails and the commands are always sent to the primary.

      Commands are not fully case-insensitive (SERVER-6651), so the best fix for the moment is probably identifying the full list of command aliases supported by the server and making sure they're all in the whitelist.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            matt.schemmel Matt Schemmel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: