camel icon indicating copy to clipboard operation
camel copied to clipboard

chore(deps): Bump mongo-java-driver-version from 4.11.1 to 5.1.1

Open dependabot[bot] opened this issue 1 year ago • 18 comments

Bumps mongo-java-driver-version from 4.11.1 to 5.1.1. Updates org.mongodb:mongodb-driver-core from 4.11.1 to 5.1.1

Release notes

Sourced from org.mongodb:mongodb-driver-core's releases.

Java Driver 5.1.0 (May 2, 2024)

What's Changed

New Contributors

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.1.0

Java Driver 5.0.1 (Apr 3, 2024)

What's Changed

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.0.1

Java Driver 5.0.0 (Mar 1, 2024)

The MongoDB JVM team is pleased to announce version 5.0.0 of the MongoDB Java Driver!

Release announcement: https://www.mongodb.com/community/forums/t/mongodb-java-driver-5-0-is-released/268913

What's Changed

... (truncated)

Commits

Updates org.mongodb:mongodb-driver-sync from 4.11.1 to 5.1.1

Release notes

Sourced from org.mongodb:mongodb-driver-sync's releases.

Java Driver 5.1.0 (May 2, 2024)

What's Changed

New Contributors

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.1.0

Java Driver 5.0.1 (Apr 3, 2024)

What's Changed

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.0.1

Java Driver 5.0.0 (Mar 1, 2024)

The MongoDB JVM team is pleased to announce version 5.0.0 of the MongoDB Java Driver!

Release announcement: https://www.mongodb.com/community/forums/t/mongodb-java-driver-5-0-is-released/268913

What's Changed

... (truncated)

Commits

Updates org.mongodb:bson from 4.11.1 to 5.1.1

Release notes

Sourced from org.mongodb:bson's releases.

Java Driver 5.1.0 (May 2, 2024)

What's Changed

New Contributors

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.1.0

Java Driver 5.0.1 (Apr 3, 2024)

What's Changed

Full Changelog: https://github.com/mongodb/mongo-java-driver/compare/r5.0.0...r5.0.1

Java Driver 5.0.0 (Mar 1, 2024)

The MongoDB JVM team is pleased to announce version 5.0.0 of the MongoDB Java Driver!

Release announcement: https://www.mongodb.com/community/forums/t/mongodb-java-driver-5-0-is-released/268913

What's Changed

... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

dependabot[bot] avatar Jun 13 '24 07:06 dependabot[bot]

:star2: Thank you for your contribution to the Apache Camel project! :star2:

:robot: CI automation will test this PR automatically.

:camel: Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • :warning: Be careful when sharing logs. Review their contents before sharing them publicly.

github-actions[bot] avatar Jun 13 '24 07:06 github-actions[bot]

@dependabot rebase

apupier avatar Jun 13 '24 08:06 apupier

/component-test mongo

Result :x: The tests failed please check the logs

apupier avatar Jun 13 '24 08:06 apupier

:robot: The Apache Camel test robot will run the tests for you :+1:

github-actions[bot] avatar Jun 13 '24 08:06 github-actions[bot]

/component-test mongodb

Result :white_check_mark: The tests passed successfully

apupier avatar Jun 13 '24 08:06 apupier

:robot: The Apache Camel test robot will run the tests for you :+1:

github-actions[bot] avatar Jun 13 '24 08:06 github-actions[bot]

/component-test mongodb-gridfs mongodb

Result :white_check_mark: The tests passed successfully

apupier avatar Jun 13 '24 08:06 apupier

:robot: The Apache Camel test robot will run the tests for you :+1:

github-actions[bot] avatar Jun 13 '24 08:06 github-actions[bot]

@orpiske mentioned on another PR that some IT tests were failing https://github.com/apache/camel/pull/13999#issuecomment-2090010957 so need to check them first

apupier avatar Jun 13 '24 09:06 apupier

Seems fine, test result when calling ~/git/camel/components/camel-mongodb$ mvn clean install -DskipITs=false:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.camel.component.mongodb.processor.idempotent.integration.MongoDbIdempotentRepositoryIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.022 s -- in org.apache.camel.component.mongodb.processor.idempotent.integration.MongoDbIdempotentRepositoryIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbOutputTypeIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.073 s -- in org.apache.camel.component.mongodb.integration.MongoDbOutputTypeIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbFindOperationIT
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.850 s -- in org.apache.camel.component.mongodb.integration.MongoDbFindOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbDynamicityIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.287 s -- in org.apache.camel.component.mongodb.integration.MongoDbDynamicityIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbFindOneAndDeleteOperationIT
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.256 s -- in org.apache.camel.component.mongodb.integration.MongoDbFindOneAndDeleteOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbConversionsIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 s -- in org.apache.camel.component.mongodb.integration.MongoDbConversionsIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbTailableCursorConsumerIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 529.9 s -- in org.apache.camel.component.mongodb.integration.MongoDbTailableCursorConsumerIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbOperationsIT
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.78 s -- in org.apache.camel.component.mongodb.integration.MongoDbOperationsIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbSpringDslOperationsIT
[INFO] Tests run: 18, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 11.21 s -- in org.apache.camel.component.mongodb.integration.MongoDbSpringDslOperationsIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbConnectionBeansIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.033 s -- in org.apache.camel.component.mongodb.integration.MongoDbConnectionBeansIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbReadPreferenceOptionIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.040 s -- in org.apache.camel.component.mongodb.integration.MongoDbReadPreferenceOptionIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbBigDecimalConverterIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 s -- in org.apache.camel.component.mongodb.integration.MongoDbBigDecimalConverterIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbExceptionHandlingIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 19.72 s -- in org.apache.camel.component.mongodb.integration.MongoDbExceptionHandlingIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbFindOneAndReplaceOperationIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.436 s -- in org.apache.camel.component.mongodb.integration.MongoDbFindOneAndReplaceOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbChangeStreamsConsumerIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.727 s -- in org.apache.camel.component.mongodb.integration.MongoDbChangeStreamsConsumerIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbIndexIT
[WARNING] Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.806 s -- in org.apache.camel.component.mongodb.integration.MongoDbIndexIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbFindOneAndUpdateOperationIT
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.368 s -- in org.apache.camel.component.mongodb.integration.MongoDbFindOneAndUpdateOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbStopEndpointIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.062 s -- in org.apache.camel.component.mongodb.integration.MongoDbStopEndpointIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbHeaderHandlingIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 s -- in org.apache.camel.component.mongodb.integration.MongoDbHeaderHandlingIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbInsertBatchIT
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.064 s -- in org.apache.camel.component.mongodb.integration.MongoDbInsertBatchIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbBulkWriteOperationIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 15.99 s -- in org.apache.camel.component.mongodb.integration.MongoDbBulkWriteOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbAggregateOperationIT
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 16.23 s -- in org.apache.camel.component.mongodb.integration.MongoDbAggregateOperationIT
[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbCredentialsFromUriConnectionIT
[INFO] Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.251 s -- in org.apache.camel.component.mongodb.integration.MongoDbCredentialsFromUriConnectionIT
[INFO] Running org.apache.camel.component.mongodb.verifier.integration.MongoDbVerifierExtensionIT
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 60.16 s -- in org.apache.camel.component.mongodb.verifier.integration.MongoDbVerifierExtensionIT
[INFO] Running org.apache.camel.component.mongodb.meta.integration.MongoDbMetaExtensionIT
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.153 s -- in org.apache.camel.component.mongodb.meta.integration.MongoDbMetaExtensionIT
[INFO] 
[INFO] Results:
[INFO] 
[WARNING] Tests run: 160, Failures: 0, Errors: 0, Skipped: 1

where we can especially notice the test which was mentioned as in error previously MongoDbTailableCursorConsumerIT :

[INFO] Running org.apache.camel.component.mongodb.integration.MongoDbTailableCursorConsumerIT
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 529.9 s -- in org.apache.camel.component.mongodb.integration.MongoDbTailableCursorConsumerIT

But I have Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:3.2.5:verify (integration-test) on project camel-mongodb: There was a timeout in the fork. I have the same message with previous previous from main branch

apupier avatar Jun 13 '24 11:06 apupier

@orpiske is it the right thing that I tested?

apupier avatar Jun 13 '24 11:06 apupier

Yeah, that's the one that is failing. I'm surprised it's working ... maybe it's using a new version of that has fixed the problems we had? I'll trigger a test on my CI to see how it goes.

orpiske avatar Jun 13 '24 11:06 orpiske

What could be the difference on CIs compared to a local run? I have: Fedora JDK 21 Temurin Maven 3.9.1

EDIT: or given the amount of time to play the test (529s, i;e; 8 minutes) can it be that my machine is faster and was able to handle it and not the CI?

I provided https://github.com/apache/camel/pull/14527 to update to latest container (very low chance to fix things but well, cost nothing to give a try)

apupier avatar Jun 14 '24 07:06 apupier

@dependabot rebase

apupier avatar Jun 14 '24 08:06 apupier

@orpiske Can you give another try with updated container? Can you also have a look to the time of execution of the failing test class? is it more or less than 8 minutes (529seconds) like on my machine? With previous version of MongoDB, on CI it is taking 8'40s https://ci-builds.apache.org/job/Camel/job/Camel%20Core%20(Build%20and%20test)/job/main/lastCompletedBuild/testReport/org.apache.camel.component.mongodb.integration/MongoDbTailableCursorConsumerIT/ so seems relatively coherent

apupier avatar Jun 14 '24 08:06 apupier

Sure thing. I am currently on a conference, but I'll try to do as soon as I get a chance.

orpiske avatar Jun 14 '24 12:06 orpiske

🤖 ❌ Test result with component components/camel-mongodb (failed)

I may need to look closely at the log for this one. I can't do this today, but I'll do it on Monday.

orpiske avatar Jun 14 '24 13:06 orpiske

This is what I have in the logs:

2024-06-14 13:03:28,751 [main           ] INFO  DefaultCamelContextExtension   - Testing: verifyConnectionKO() (org.apache.camel.component.mongodb.verifier.integration.MongoDbVerifierExtensionIT)
2024-06-14 13:03:28,753 [main           ] INFO  ongoComponentVerifierExtension - Testing connection against mongodb://test-user:[email protected]/admin
2024-06-14 13:03:28,754 [main           ] INFO  client                         - MongoClient with metadata {"driver": {"name": "mongo-java-driver|sync", "version": "5.1.1"}, "os": {"type": "Linux", "name": "Linux", "architecture": "amd64", "version": "6.8.11-200.fc39.x86_64"}, "platform": "Java/Eclipse Adoptium/17.0.9+9"} created with settings MongoClientSettings{readPreference=primary, writeConcern=WriteConcern{w=null, wTimeout=null ms, journal=null}, retryWrites=true, retryReads=true, readConcern=ReadConcern{level=null}, credential=MongoCredential{mechanism=null, userName='test-user', source='admin', password=<hidden>, mechanismProperties=<hidden>}, transportSettings=null, commandListeners=[], codecRegistry=ProvidersCodecRegistry{codecProviders=[ValueCodecProvider{}, BsonValueCodecProvider{}, DBRefCodecProvider{}, DBObjectCodecProvider{}, DocumentCodecProvider{}, CollectionCodecProvider{}, IterableCodecProvider{}, MapCodecProvider{}, GeoJsonCodecProvider{}, GridFSFileCodecProvider{}, Jsr310CodecProvider{}, JsonObjectCodecProvider{}, BsonCodecProvider{}, EnumCodecProvider{}, com.mongodb.client.model.mql.ExpressionCodecProvider@28369db0, com.mongodb.Jep395RecordCodecProvider@30893e08, com.mongodb.KotlinCodecProvider@2e86807a]}, loggerSettings=LoggerSettings{maxDocumentLength=1000}, clusterSettings={hosts=[notreachable.host:27017], srvServiceName=mongodb, mode=SINGLE, requiredClusterType=UNKNOWN, requiredReplicaSetName='null', serverSelector='null', clusterListeners='[]', serverSelectionTimeout='30000 ms', localThreshold='15 ms'}, socketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=0, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, heartbeatSocketSettings=SocketSettings{connectTimeoutMS=10000, readTimeoutMS=10000, receiveBufferSize=0, proxySettings=ProxySettings{host=null, port=null, username=null, password=null}}, connectionPoolSettings=ConnectionPoolSettings{maxSize=100, minSize=0, maxWaitTimeMS=120000, maxConnectionLifeTimeMS=0, maxConnectionIdleTimeMS=0, maintenanceInitialDelayMS=0, maintenanceFrequencyMS=60000, connectionPoolListeners=[], maxConnecting=2}, serverSettings=ServerSettings{heartbeatFrequencyMS=10000, minHeartbeatFrequencyMS=500, serverMonitoringMode=AUTO, serverListeners='[]', serverMonitorListeners='[]'}, sslSettings=SslSettings{enabled=false, invalidHostNameAllowed=false, context=null}, applicationName='null', compressorList=[], uuidRepresentation=UNSPECIFIED, serverApi=null, autoEncryptionSettings=null, dnsClient=null, inetAddressResolver=null, contextProvider=null}
2024-06-14 13:03:28,754 [main           ] INFO  cluster                        - Waiting for server to become available for operation with ID 137684. Remaining time: 30000 ms. Selector: ReadPreferenceServerSelector{readPreference=primary}, topology description: {type=UNKNOWN, servers=[{address=notreachable.host:27017, type=UNKNOWN, state=CONNECTING}].
2024-06-14 13:03:28,775 [able.host:27017] INFO  cluster                        - Exception in monitor thread while connecting to server notreachable.host:27017
com.mongodb.MongoSocketException: notreachable.host: Name or service not known
        at com.mongodb.internal.connection.ServerAddressHelper.getSocketAddresses(ServerAddressHelper.java:75) ~[mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.SocketStream.initializeSocket(SocketStream.java:101) ~[mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.SocketStream.open(SocketStream.java:80) ~[mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.InternalStreamConnection.open(InternalStreamConnection.java:226) ~[mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitor.lookupServerDescription(DefaultServerMonitor.java:216) [mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.DefaultServerMonitor$ServerMonitor.run(DefaultServerMonitor.java:173) [mongodb-driver-core-5.1.1.jar:?]
Caused by: java.net.UnknownHostException: notreachable.host: Name or service not known
        at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ~[?:?]
        at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:934) ~[?:?]
        at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543) ~[?:?]
        at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852) ~[?:?]
        at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1533) ~[?:?]
        at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1385) ~[?:?]
        at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1306) ~[?:?]
        at com.mongodb.internal.connection.DefaultInetAddressResolver.lookupByName(DefaultInetAddressResolver.java:34) ~[mongodb-driver-core-5.1.1.jar:?]
        at com.mongodb.internal.connection.ServerAddressHelper.getSocketAddresses(ServerAddressHelper.java:71) ~[mongodb-driver-core-5.1.1.jar:?]
        ... 5 more

orpiske avatar Jun 15 '24 05:06 orpiske

@dependabot rebase

essobedo avatar Jul 04 '24 14:07 essobedo

/component-test mongodb-gridfs mongodb

Result :white_check_mark: The tests passed successfully

essobedo avatar Jul 04 '24 14:07 essobedo

:robot: The Apache Camel test robot will run the tests for you :+1:

github-actions[bot] avatar Jul 04 '24 14:07 github-actions[bot]

Can we hold merging this until after the 4.7.0 release is tagged?

It'll break MongoDB support in Camel Quarkus. Quarkus aren't going to move to the 5.x client any time soon. So we (or I) will need to create a mongo4 component or find some other solution.

jamesnetherton avatar Jul 04 '24 15:07 jamesnetherton

@jamesnetherton don't worry, this is just a test for fixing the gh action used. It won't be merged.

oscerd avatar Jul 04 '24 15:07 oscerd

@jamesnetherton yes sorry for the noise, it is only for testing purposes

essobedo avatar Jul 04 '24 15:07 essobedo

Superseded by #14804.

dependabot[bot] avatar Jul 12 '24 08:07 dependabot[bot]