Skip to content

Migrate BIRT’s MongoDB connector to driver 5.13.0 - #2502

Merged
merks merged 2 commits into
masterfrom
copilot/upgrade-birt-to-mongodb-5x
Oct 13, 2026
Merged

merks merged 2 commits into
masterfrom
copilot/upgrade-birt-to-mongodb-5x

Conversation

Copilot AI commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

BIRT depends on the legacy mongo-java-driver 3.12.14 bundle. Moving to MongoDB 5.x requires replacing removed APIs and adopting the split driver bundles.

  • Dependencies

    • Replace the monolithic bundle with BSON/core 5.13.0 from Orbit and the synchronous driver from Maven Central.
    • Update OSGi package imports and reported driver version.
  • Connector migration

    • Adopt MongoClientSettings, ConnectionString, Document, lists, and BsonType.
    • Preserve find, aggregation, map-reduce, database commands, and result formatting.
    • Close cursors explicitly and remove credential-bearing URI logs.
  • Compatibility coverage

    • Add regression coverage for query-property serialization, query syntax, BSON metadata, JSON formatting, and cursor cleanup.
    • Document the new bundles and always-enabled socket keep-alive.

Copilot AI linked an issue Oct 12, 2026 that may be closed by this pull request
Co-authored-by: wimjongman <180969+wimjongman@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade BIRT to use mongodb 5.x Migrate BIRT’s MongoDB connector to driver 5.13.0 Oct 12, 2026
Copilot AI requested a review from wimjongman October 12, 2026 19:24

@merks merks left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The changes could make better use of Java 25 with respect to instanceof and casting. In the end the .target will be regenerated so best to avoid adding maven dependencies.

@wimjongman
wimjongman marked this pull request as ready for review October 12, 2026 20:28
@wimjongman

Copy link
Copy Markdown
Contributor

I tested the driver and it works as expected.

@wimjongman wimjongman added this to the 4.26 milestone Oct 12, 2026
@merks
merks merged commit c72cf01 into master Oct 13, 2026
3 checks passed
@merks
merks deleted the copilot/upgrade-birt-to-mongodb-5x branch October 13, 2026 06:09
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.

Upgrade BIRT to use mongodb 5.x

3 participants