Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency org.mongodb:mongo-java-driver to v2.14.3 #5865

Conversation

renovate-bot
Copy link
Contributor

@renovate-bot renovate-bot commented Apr 29, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.mongodb:mongo-java-driver (source) 2.11.3 -> 2.14.3 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Configuration

📅 Schedule: Branch creation - "every 3 weeks on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@vlsi
Copy link
Collaborator

vlsi commented Apr 29, 2023

There are deprecation warnings:

> Task :src:protocol:mongodb:compileJava FAILED
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java:116: warning: [deprecation] autoConnectRetry(boolean) in Builder has been deprecated
                .autoConnectRetry(getAutoConnectRetry())
                ^
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java:119: warning: [deprecation] maxAutoConnectRetryTime(long) in Builder has been deprecated
                .maxAutoConnectRetryTime(getMaxAutoConnectRetryTime())
                ^
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/config/MongoSourceElement.java:129: warning: [deprecation] WriteConcern(int,int,boolean,boolean,boolean) in WriteConcern has been deprecated
            builder.writeConcern(new WriteConcern(
                                 ^
error: warnings found and -Werror specified
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java:52: warning: [deprecation] isAuthenticated() in DB has been deprecated
        boolean authenticated = db.isAuthenticated();
                                  ^
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/mongo/MongoDB.java:56: warning: [deprecation] authenticate(String,char[]) in DB has been deprecated
                authenticated = db.authenticate(username, password.toCharArray());
                                  ^
/Users/runner/work/jmeter/jmeter/src/protocol/mongodb/src/main/java/org/apache/jmeter/protocol/mongodb/sampler/MongoScriptRunner.java:54: warning: [deprecation] requestStart() in DB has been deprecated
        db.requestStart();

@FSchumacher
Copy link
Contributor

I believe, that our mongodb sampler is using deprecated features and there was an enhancement discussion a few years ago.
I think it was not possible to support the old and the new style of API at the same time in one sampler and the issue was therefore declined. Maybe we could deprecate this sampler, and either add a new one, or hope that some third party plug-in will spring into life to fill the niche.

@renovate-bot renovate-bot force-pushed the renovate/org.mongodb-mongo-java-driver-2.x branch 2 times, most recently from c9ec94a to 82f94fc Compare May 3, 2023 07:03
@renovate-bot renovate-bot force-pushed the renovate/org.mongodb-mongo-java-driver-2.x branch from 82f94fc to 3c8a89f Compare May 22, 2023 14:49
@vlsi vlsi closed this in b788603 Nov 24, 2023
@vlsi
Copy link
Collaborator

vlsi commented Nov 24, 2023

I added @SuppressWarnings("deprecation") so the build does not fail.
I guess we can refactor mongo sampler later

@renovate-bot renovate-bot deleted the renovate/org.mongodb-mongo-java-driver-2.x branch November 24, 2023 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants