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

ReadPreference.primary() semantic ambiguity...

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.11.3
    • API, Documentation
    • None

    Description

      The current naming convention in Read Preference when set to "primary"
      might be ambiguous- (specifically that this is the default mode)

      Rename Read Preference Modes "primary" to "primaryOnly"
      would make it more clear that if the primary is unavailable, read operations produce an error or throw an exception.

      API:
      Rename ReadPreference.primary() to ReadPreference.primaryOnly()

      Attachments

        Activity

          People

            Unassigned Unassigned
            nboumaza Nadia Boumaza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: