Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: techbelle/mongo-java-driver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: mongodb/mongo-java-driver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 15 commits
  • 55 files changed
  • 10 contributors

Commits on May 20, 2026

  1. Add typed builder API for vector search index definitions (mongodb#1960)

    Introduced `SearchIndexDefinition` sealed interface with factory methods,
    `VectorSearchIndexFields` (`vectorField`, `filterField`, `autoEmbedField` builders),
    `HnswSearchIndexOptions` for HNSW-specific parameters, and
    `VectorSearchIndexDefinition` as the concrete implementation.
    
    Added Scala companion objects for `SearchIndexDefinition` and
    `VectorSearchIndexFields` with delegating factory methods, and a
    `SearchIndexModel.apply` overload for `VectorSearchIndexDefinition`.
    
    Annotated mutable builders with `@NotThreadSafe`. Added fail-fast
    null-element validation using notNullElements in factory methods.
    
    Includes unit tests (Java) and spec tests (Scala).
    
    JAVA-6112
    JAVA-6099
    ---------
    
    Co-authored-by: Almas Abdrazak <almas337519@gmail.com>
    rozza and strogiyotec authored May 20, 2026
    Configuration menu
    Copy the full SHA
    a50345f View commit details
    Browse the repository at this point in the history
  2. Add $rerank aggregation stage support (mongodb#1963)

    Adds builder support for the $rerank pipeline stage (MongoDB 8.3, Atlas only).
    
    API:
    - RerankQuery: query object with text shorthand or full Bson for future modalities
    - Aggregates.rerank(): 2 overloads (single path, multi path)
    - Scala wrappers and type alias in Aggregates.scala
    
    JAVA-6052
    rozza authored May 20, 2026
    Configuration menu
    Copy the full SHA
    028fec3 View commit details
    Browse the repository at this point in the history
  3. Resolve TLS channel address before opening socket

    This change fixes the TLS channel stream connection-establishment path so address resolution happens before opening a SocketChannel. Previously, TlsChannelStream opened and configured a SocketChannel before calling getSocketAddresses. If the configured resolver failed, the exception was reported to the async handler, but the already-opened channel was not closed.
    
    Resolving the address before opening the channel avoids the resolver-failure leak and aligns TlsChannelStream with the existing async socket-channel and Netty stream implementations. The setup path now also closes the channel if any pre-registration step fails after the channel has been opened.
    
    JAVA-5855
    techbelle authored May 20, 2026
    Configuration menu
    Copy the full SHA
    13d4aef View commit details
    Browse the repository at this point in the history

Commits on May 21, 2026

  1. Add vectorSearch operator for $search pipeline stage (mongodb#1962)

    * Add vectorSearch operator for $search pipeline stage
    
    JAVA-6130
    rozza authored May 21, 2026
    Configuration menu
    Copy the full SHA
    58122f6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    717da9c View commit details
    Browse the repository at this point in the history

Commits on May 26, 2026

  1. Add storedSource support for vector search indexes and returnStoredSo…

    …urce for $vectorSearch queries (mongodb#1977)
    
    * Add storedSource support for vector search indexes and returnStoredSource for $vectorSearch queries
    
    JAVA-6129
    rozza authored May 26, 2026
    Configuration menu
    Copy the full SHA
    cd6c045 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2026

  1. Mark micrometer OSGi imports as optional and add bundle resolution te…

    …st (mongodb#1982)
    
    The micrometer-observation dependency is optional but its packages were
    imported as required in the OSGi metadata, causing bundle resolution
    failure in OSGi containers.
    
    Adds io.micrometer.*;resolution:=optional to driver-core Import-Package.
    
    Also adds a new testing/osgi-test module that uses Apache Felix to verify
    all driver bundles resolve without optional dependencies present. This
    runs in CI via static-checks.sh to prevent future regressions.
    
    JAVA-6215
    
    ---------
    
    Co-authored-by: Viacheslav Babanin <frest0512@gmail.com>
    rozza and vbabanin authored May 27, 2026
    Configuration menu
    Copy the full SHA
    541af75 View commit details
    Browse the repository at this point in the history
  2. Fix NamespaceExists test failure (mongodb#1956)

    * Drop test databases between Micrometer tracing tests
    
    ---------
    
    Co-authored-by: Ross Lawley <ross@mongodb.com>
    nhachicha and rozza authored May 27, 2026
    Configuration menu
    Copy the full SHA
    40ee8d5 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2026

  1. Optimize RawBsonDocument encode and decode by eliminating intermediat…

    …e allocations (mongodb#1988)
    
    - Add BsonInput.pipe(BsonOutput, int) to remove the temporary byte[] copy in BsonBinaryWriter.pipeDocument() on both encode and decode paths
    - Add public getByteBacking(), getByteOffset(), getByteLength() on RawBsonDocument to expose the backing byte array
    
    JAVA-6133
    
    ---------
    
    Co-authored-by: slav.babanin <slav.babanin@mongodb.com>
    rozza and vbabanin authored May 28, 2026
    Configuration menu
    Copy the full SHA
    98e0761 View commit details
    Browse the repository at this point in the history
  2. Upgrade libmongocrypt version to 1.18.1 (mongodb#1983)

    JAVA-6187
    
    ---------
    
    Co-authored-by: Almas Abdrazak <abdrazak.almas@mongodb.com>
    Co-authored-by: Ross Lawley <ross@mongodb.com>
    Co-authored-by: slav.babanin <slav.babanin@mongodb.com>
    4 people authored May 28, 2026
    Configuration menu
    Copy the full SHA
    966abab View commit details
    Browse the repository at this point in the history
  3. Add BinaryVector and VectorSearchQuery vectorSearch overloads to Scal…

    …a driver (mongodb#1986)
    
    * Add BinaryVector and VectorSearchQuery vectorSearch overloads to Scala driver
    
    The Scala Aggregates wrapper only exposed the `Iterable[Double]` overload of
    vectorSearch. This adds the `BinaryVector` (since 5.3) and `VectorSearchQuery`
    auto-embedding (since 5.7) overloads. Changes the existing overload's parameter
    from `Iterable[java.lang.Double]` to `Iterable[Double]` to resolve Scala type
    inference ambiguity when multiple overloads are present.
    
    Also fixes scaladoc warnings for unresolvable cross-module Java type links.
    
    JAVA-5699
    
    ---------
    
    Co-authored-by: Viacheslav Babanin <frest0512@gmail.com>
    rozza and vbabanin authored May 28, 2026
    Configuration menu
    Copy the full SHA
    f3bbdb2 View commit details
    Browse the repository at this point in the history
  4. Version: bump 5.9.0-SNAPSHOT

    rozza committed May 28, 2026
    Configuration menu
    Copy the full SHA
    d120c75 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2026

  1. build(deps): bump testing/resources/specifications from b519824 to …

    …`25bee54` (mongodb#1984)
    
    [Commits](mongodb/specifications@b519824...25bee54)
    
    ---
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jun 1, 2026
    Configuration menu
    Copy the full SHA
    606ed03 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2026

  1. Evergreen: fixes - gpg and oidc (mongodb#1987)

    * Evergreen: limit memory usage for oidc tests
    * Update the testing-guide
    * Evergreen: Ensure gpg is available
    
    JAVA-6221
    JAVA-6187
    rozza authored Jun 2, 2026
    Configuration menu
    Copy the full SHA
    321bdb7 View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2026

  1. Configuration menu
    Copy the full SHA
    8aa3242 View commit details
    Browse the repository at this point in the history
Loading