when all regular secondary nodes fail, clients using `readPreference: secondary` cannot perform reads even if healthy hidden secondary nodes exist

    • Type: Task
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Currently, when all regular secondary nodes fail, clients using `readPreference: secondary` cannot perform reads even if healthy hidden secondary nodes exist. This causes:

      • Read operation failures
      • Unnecessary load on primary
      • Service degradation requiring manual intervention
        1. Solution

      Add `settings.autoPromoteHidden` boolean configuration (default: `false`):

      • *When enabled*: Hidden nodes automatically appear in the `hosts` array of `hello`/`isMaster` responses when all non-hidden secondaries are down
      • *When disabled*: Preserves current behavior (hidden nodes never exposed)
      • *Auto-recovery*: Hidden nodes automatically demoted when non-hidden secondaries recover

            Assignee:
            Unassigned
            Reporter:
            Honchow Chen
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: