-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
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.