This test was written a long time ago for SERVER-4400. We should consider rewriting it as a C++ unit test or remove it. It does not really work well with the passthrough suites we run these days.
attempt to record query plan for a dropped cursor triggers bad file number assertion
Blacklist queryoptimizer3.js from all sharding passthrough suites
Index creation may be allowed to start on a collection in drop-pending state
Explore why queryoptimizer3.js fails using the IndexBuildsCoordinator, then fix it