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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.10.1
    • Connection Management
    • None

    Description

      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?

      Attachments

        Activity

          People

            Unassigned Unassigned
            sonnessa Michele Sonnessa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: