-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
ALL
-
157
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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)