In scope of JAVA-5831, any code that was was no longer required due to removing support for MongoDB 4.0 was removed from the repository. However, one bit was missed, and its non-removal actually caused a bug (JAVA-5865), which was fixed in a patch release.
This ticket is to track removal of that code:
- InternalStreamConnectionInitalizer#completeConnectionDescriptionInitialization
- InternalStreamConnectionInitalizer#completeConnectionDescriptionInitializationAsync
This code is no longer needed because what it does is execute the getlasterror command in the case where the hello command doesn't include a connectionId in its reply. But from MongoDB 4.2 onward it does, so there is no need for this additional bit of code anymore.