Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18428

Clients read from hidden secondary

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.8
    • Component/s: Admin
    • Labels:
      None
    • ALL

      I have a replica set (primary, secondary, hidden). In MMS, I see that after few days that the hidden member had 5 connections, suddenly the number of connection jumps to around 600, similar to the number of connections that the primary and secondary have. This happened twice. Last time after restarting the hidden member machine the connections count returned to 5.

      In my node.js mongo driver log the following line begins appears after the number of connections increased:
      "picked server [hidden hostname]".

      Here is my configuration:

      rs.rs1:PRIMARY
      rs.conf()
      {
      	"_id" : "rs1",
      	"version" : 2,
      	"members" : [
      		{
      			"_id" : 0,
      			"host" : "[primary hostname]:27017"
      		},
      		{
      			"_id" : 1,
      			"host" : "[hidden hostname]:27017",
      			"priority" : 0,
      			"hidden" : true
      		},
      		{
      			"_id" : 2,
      			"host" : "[secondary hostname]:27017",
      			"priority" : 0.5
      		}
      	]
      }
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            emoshe Elad Moshe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: