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

ValidateDirectSecondaryReads hook should exclude write commands and read commands against config database

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • Cluster Scalability 2024-3-18

      The hook should filter out writes commands since an aggregate command involves $out and $merge are expected to trigger writes on the primary, and those write commands would inherit the "comment" of that aggregate command. The hook should also filter out read commands against the config database on the primary since a read command may trigger a routing metadata refresh reads on the primary. As part of this, we should also a jstest for testing the js helpers in validate_direct_secondary_reads.js.

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: