Skip to content

NIFI-10949 Update MongoDB components using current driver#6759

Merged
bbende merged 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10949
Jan 9, 2023
Merged

NIFI-10949 Update MongoDB components using current driver#6759
bbende merged 1 commit intoapache:mainfrom
exceptionfactory:NIFI-10949

Conversation

@exceptionfactory
Copy link
Contributor

Summary

NIFI-10949 Updates MongoDB Processors and Controller Services to use the current version of mongodb-driver-sync in place of mongodb-driver-legacy.

The updates involve minimal changes to connection setup and MongoClient instances as most operations already use current interfaces and classes. The mongodb-driver-sync library is a transitive dependency of mongodb-driver-legacy, limiting the scope of dependency changes.

Additional changes include upgrading the MongoDB Driver from 4.7.2 to 4.8.0 and marking the library as provided in mongodb-processors and mongodb-services as it is provided at runtime through mongodb-client-service-api-nar.

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using mvn clean install -P contrib-check
    • JDK 8
    • JDK 11
    • JDK 17

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

- Replaced references to mongodb-driver-legacy with mongodb-driver-sync
- Updated components to use current synchronous driver classes
- Upgraded MongoDB driver from 4.7.2 to 4.8.0
Copy link
Contributor

@bbende bbende left a comment

Choose a reason for hiding this comment

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

Looks good, ITs all passing except for the GridFS one which already fails in main, going to merge

@bbende bbende merged commit 6c51744 into apache:main Jan 9, 2023
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.

2 participants