Skip to content

Merge main into ByteBuf#1907

Open
rozza wants to merge 16 commits intomongodb:ByteBuffrom
rozza:ByteBuf
Open

Merge main into ByteBuf#1907
rozza wants to merge 16 commits intomongodb:ByteBuffrom
rozza:ByteBuf

Conversation

@rozza
Copy link
Member

@rozza rozza commented Mar 10, 2026

Only merge conflict was in InternalStreamConnection - which is now simplified

rozza and others added 15 commits February 2, 2026 16:14
Originally introduced in 057649f
This change had the unintended side effect of leaking netty ByteBufs when logging.

JAVA-5982
…variations (mongodb#1793)

JAVA-5375
---------
Co-authored-by: Ross Lawley <ross@mongodb.com>
Fixed no comment warning in BinaryVector
Improved BsonBinary asUuid documentation
Improved BsonBinarySubType isUuid documentation

JAVA-6086
* JAVA-5907

* JAVA-5907 use execute within executor service

If we don't use the return value from executor then we should use `execute`  instead of `submit`

* format

* revert error log for netty leak

---------

Co-authored-by: Almas Abdrazak <abdrazak.almas@mongodb.com>
Add instanceof check in BsonDocumentCodec to route RawBsonDocument to RawBsonDocumentCodec, restoring efficient byte-copy encoding. Previous BsonType-based lookup led to sub-optimal
performance as it could not distinguish RawBsonDocument from BsonDocument.

JAVA-6101
Update evergreen atlas-deployed-task-group configuration
Assume test secrets and follow the driver-evergreen-tools
atlas recommended usage:

https://github.com/mongodb-labs/drivers-evergreen-tools/tree/master/.evergreen/atlas#usage

JAVA-6103
…ive-streams (mongodb#1898)

* Add Micrometer/OpenTelemetry tracing support to the reactive-streams driver https://jira.mongodb.org/browse/JAVA-6028

Port the tracing infrastructure from the sync driver to driver-reactive-streams, reusing the existing driver-core, TracingManager, Span, and TraceContext classes.

* Move error handling and span lifecycle (span.error(), span.end()) from Reactor's doOnError/doFinally operators into the async callback, before emitting the result to the subscriber.

* Making sure span is properly closed when an exception occurs
Conflicts:
  driver-core/src/main/com/mongodb/internal/connection/InternalStreamConnection.java
@rozza rozza requested a review from nhachicha March 10, 2026 14:48
@rozza rozza requested a review from a team as a code owner March 10, 2026 14:48
Comment on lines +637 to +639
boolean isLoggingCommandNeeded = isLoggingCommandNeeded();

if (isLoggingCommandNeeded) {
Copy link
Member

@vbabanin vbabanin Mar 10, 2026

Choose a reason for hiding this comment

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

Was the change to store isLoggingCommandNeeded() in a local variable intentional (e.g., for debugging/readability), or could we keep the direct if(isLoggingCommandNeeded())?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 Removed it no need for a local variable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants