Audit FLE jstests to have the right the tag

XMLWordPrintableJSON

    • Server Security
    • v8.2, v8.1, v8.0
    • Security 2024-04-15, Security 2024-04-29
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      There are a lot of FLE tests use assertEncryptedCollectionCounts to perform checks and this check can be performed against a secondary if the test passthrough changes the read preference to secondary/secondaryPreferred. However, reading from a secondary can return stale data and since FLE clients are not working with causal consistency, it's not guaranteed that the assertEncryptedCollectionCounts will check against the latest data on the secondary so they can fail on secondary.

      From a previous discussion, these tests should have the tag "assumes_read_preference_unchanged" so they won't run against secondary. 

              Assignee:
              Unassigned
              Reporter:
              Jiawei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: