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

planner_ixselect_test failed due to missing golden test data

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

      bazel run //src/mongo/db/query:db_query_test_with_debug

      Show
      bazel run //src/mongo/db/query:db_query_test_with_debug
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running the unit test db_query_test in Bazel shows the following error:

      "Golden data file doesn't exist: \"./src/mongo/db/query/test_output/query_planner_i_x_select_test/strip_invalid_c_w_i_assignments_basic.txt\"

      This occurs because Bazel requires the referenced test data explicitly listed as dependencies. When running the test in bazel run, bazel creates a temporary folder for the environment. Without specifying the test data, Bazel won't copy the test data there, causing the test to fail to find the golden test data there.

            Assignee:
            chii.huang@mongodb.com Chi-I Huang
            Reporter:
            chii.huang@mongodb.com Chi-I Huang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None
              None
              None