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

ReadPrefs ignored for some commands due to case-sensitive comparison

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.11.0
    • Affects Version/s: 2.9.0
    • Component/s: API
    • None

      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.

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

              Created:
              Updated:
              Resolved: