Why Java Driver does not allow to execute saved javascript on secondary node

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.10.1
    • Component/s: Connection Management
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When the ReadPreference.secondary() is set and command is executed,
      DB class force the driver to ReadPreference.primary()

      I worder why this behaviour has been introduced.

      I need to invoke javascript functions and spread the call over
      my replica set.

      Is there a workaround?

            Assignee:
            Unassigned
            Reporter:
            Michele Sonnessa
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: