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

"not master" MongoException when using GridFS with a direction connection to a secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.11.2, 2.12.0
    • Affects Version/s: 2.6.3
    • Component/s: GridFS
    • Labels:
      None
    • Environment:
      linux 64, replica set.

      I got an Exception "not master" when i read from the secondary.
      In the GridFS structure method, when the files collections count less
      then 1000, mongodb will to ensure standard indexes. but secondary is
      not allow write operations.
      so, how do i read files from a secondary?

        1. mongo.log
          7.20 MB

            Assignee:
            Unassigned Unassigned
            Reporter:
            machengp go
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: