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

XMLWordPrintableJSON

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

      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
            Reporter:
            go
            None
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: