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

Use full collection file path in --drop --load optimization

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: QueryTester
    • None
    • Query Optimization
    • Fully Compatible
    • ALL
    • QO 2024-12-09
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      QueryTester's --drop --load optimization looks at the collection definition line from the test file and decides whether a collection is stale based on that string. This can create problems when the directory structure looks like

      parent
        dir1
          agg.coll
          agg.test
        dir2
          agg.coll
          agg.test

      If both agg.test files include their respective agg.coll files, the relative paths would look identical, causing both to have the line agg.coll as collName. If mongotest is run with both test files, e.g. -t dir1/agg.test -t dir2/agg.test, then the optimization will think that it can skip the second agg.coll load, even though the collection definitions are actually different.

            Assignee:
            william.qian@mongodb.com William Qian
            Reporter:
            william.qian@mongodb.com William Qian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None