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

Deprecate PrimaryServerSelector in favor of new WritableServerSelector

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.1.0
    • 3.0.2
    • API, Cluster Management
    • None

    Description

      It's confusing that a PrimaryServerSelector instance does not behave identically to a ReadPreferenceServerSelector with a primary read preference. The latter treats clusters with a direct connection mode specially, while the former does not. To remove this confusion, we should deprecate PrimaryServerSelector and add a new WritableServerSelector that works the same. In others, a class rename that doesn't break compatibility.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: