SBE plan cache prevents range deletion from running for rooted $or queries

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Query Execution
    • Fully Compatible
    • ALL
    • Hide

      repro-server-73032.patch

      Run jstests/sharding/sbe_plan_cache_does_not_block_range_deletion.js on the sharding suite with 'featureFlagSbeFull' enabled.

      Show
      repro-server-73032.patch Run jstests/sharding/sbe_plan_cache_does_not_block_range_deletion.js on the sharding suite with 'featureFlagSbeFull' enabled.
    • QE 2023-02-06
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-61835 fixed a situation where the SBE plan cache improperly caches a ShardFilter, which prevents range deletions from running. It seems like for some query shapes this is still happening. The query shape in particular I found is

      {$or: [{a: {$lte: 10}}, {b: {$lte: 10}}]}

       

              Assignee:
              David Storch
              Reporter:
              Jordi Serra Torrens
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: