ReadPreference.primary() semantic ambiguity...

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.11.3
    • Component/s: API, Documentation
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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()

            Assignee:
            Unassigned
            Reporter:
            Nadia Boumaza
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: