I’m making progress on the fix (WT-11133) but the right fix may not be simple. Prior to WT-10994 there was a use-after-free bug, which WT-10994 fixed (along with another issue with bulk cursors).
The side effect is that dropped dhandles stay around longer than they should, which is detected by the test_sweep04.py test (which unfortunately was not part of PR testing, otherwise I’d have seen the issue earlier).
To stop the failing Evergreen tasks for now, I’d prefer a minor change (rather than revert) to leave the new tests in place, but just make the sweep server ignore the WT_DHANDLE_DROPPED flag temporarily (which with revive the use-after-free issue) and adjust the new tests correspondingly (again temporarily). That would leave the fix to the bulk cursor issue in place.