Make NettyByteBuf share parent reference count. (#1891) by vbabanin · Pull Request #1897 · mongodb/mongo-java-driver

@vbabanin

@vbabanin

stIncMale

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but I don't know if we are supposed to reuse the Jira ticket when backporting (if yes, then the same ticket will be included in multiple driver versions), or create a new ticket (one per the driver version).

@vbabanin

Failing tests in this PR run:

com.mongodb.reactivestreams.client.ClientSideEncryptionCorpusTest.testCorpus_useLocalSchema__true_
com.mongodb.reactivestreams.client.ClientSideEncryptionCorpusTest.testCorpus_useLocalSchema__false_
com.mongodb.client.ClientSideEncryptionBsonSizeLimitsSpecification.test_BSON_size_limits
com.mongodb.client.ClientSideEncryptionCorpusTest.testCorpus_useLocalSchema__true_
com.mongodb.client.ClientSideEncryptionCorpusTest.testCorpus_useLocalSchema__false_

These failures are due to SERVER-118428. The affected tests are currently skipped on main and tracked in DRIVERS-3382 to unskip once SERVER-118428 is resolved.