WT-6598, a hole in testing allowed a code error to be merged, which was detected by running with MongoDB. The theory is that MongoDB uses the early_load flag, which changes the ordering of dynamically loaded extensions in WiredTiger. The test suite never tries this flag, and should.
test_encrypt01 tests both compression and encryption extensions. I think if we added a new set of scenarios to be multiplied into this test, which did all combinations of early_load for compression and encryption, we could catch this. As part of testing the test case, we should make sure the earlier commit for
WT-6598 (https://github.com/wiredtiger/wiredtiger/commit/49b42d701b2236f7bc1b3868bdd146bc61db62b5) fails, and that the current tree works.