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

Delete unneeded, inconsistent test from noPassthrough/external_data_source.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 157

      This bug is to fix BF-27170 which was caused by SERVER-71980 removing a check for whether the file is a pipe. Before that check was removed, attempting to read a directory as a pipe returned ErrorCodes.FileNotOpen == 38, because that is the error code that check used to return. Now this test fails with code 6968305 inside multi_bson_stream_cursor.cpp nextFromCurrentStream().

      The failing test is jstests/noPassthrough/external_data_source.js test that is commented as "// Not a pipe" which asserts the error code should be FileNotOpen. This could be changed to 6968305 instead, but yoonsoo.kim@mongodb.com  and I decided it is better to remove this test, as the specific error code hit may be different on other platforms and this test is not testing anything valuable anyway. (On MacOS arm64, attempting to read a directory as a pipe usually does not even fail at all, and thus this test has almost never passed on that platform – see history https://evergreen.mongodb.com/task_history/mongodb-mongo-master-nightly/noPassthrough?revision=d5589eb5ff27c5dd735d69b0e2c7c88c903520f4#/ext[…]=fail)

      FYI arun.banala@mongodb.com 

            Assignee:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Reporter:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: