Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-ogm
Commit: 8e7455519fad6e2f8829ad87dcf9791cf474218c
https://github.com/hibernate/hibernate-ogm/commit/8e7455519fad6e2f8829ad8...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
integrationtest/src/test/java/org/hibernate/ogm/test/integration/mongodb/wildflynosql/MongoDBWildFlyNoSQLMemberRegistrationIT.java
M integrationtest/wildfly-server-testconfig/standalone-nosql.xml
Log Message:
-----------
OGM-1588 Disable MongoDBWildFlyNoSQLMemberRegistrationIT
Wildfly 14 cannot create a mongo client with mongo client 4.
Error:
```
^[[0m^[[31m17:52:59,776 ERROR [org.jboss.as.controller.management-operation]
(ServerService Thread Pool -- 67) WFLYCTL0013: Operation ("add") failed -
address: ([
("subsystem" => "mongodb"),
("mongo" => "default")
]): java.lang.RuntimeException: Could not get constructor for com.mongodb.MongoClient
at
org.wildfly.nosql.common.MethodHandleBuilder.declaredConstructor(MethodHandleBuilder.java:105)
at
org.wildfly.extension.nosql.driver.mongodb.MongoInteraction.<init>(MongoInteraction.java:90)
at
org.wildfly.extension.nosql.driver.mongodb.MongoClientConnectionsService.<init>(MongoClientConnectionsService.java:62)
at
org.wildfly.extension.nosql.subsystem.mongodb.MongoDefinition$ProfileAdd.startMongoDriverService(MongoDefinition.java:231)
at
org.wildfly.extension.nosql.subsystem.mongodb.MongoDefinition$ProfileAdd.performRuntime(MongoDefinition.java:226)
at
org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:338)
at
org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:159)
at
org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999)
at
org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743)
at
org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
at
org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:384)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at
org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1349)
at java.lang.Thread.run(Thread.java:748)
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: java.lang.NoSuchMethodException:
com.mongodb.MongoClient.<init>(java.util.List, java.util.List,
com.mongodb.MongoClientOptions)
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at
org.wildfly.nosql.common.MethodHandleBuilder.declaredConstructor(MethodHandleBuilder.java:102)
... 16 more
```
Commit: e5e3a76afaaec048dfa7c98fff64e503ebd5c7b3
https://github.com/hibernate/hibernate-ogm/commit/e5e3a76afaaec048dfa7c98...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/MongoDBSessionCLIQueryTest.java
Log Message:
-----------
OGM-1588 Fix MongoDBSessionCLIQueryTest
Since MongoDB 4.2, it's mandatory to specify an hint when using
$max or $min. We already supports hints, so we just need to
update the tests accordingly.
It also contains some minor clean up.
Commit: fc7ad8835613cbcb283f0afc022be2643932e36b
https://github.com/hibernate/hibernate-ogm/commit/fc7ad8835613cbcb283f0af...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/index/MongoDBIndexOptionsConflictsTest.java
Log Message:
-----------
OGM-1588 Fix MongoDBIndexOptionsConflictsTest
All entities in the test map to to the same collection.
I'm not 100% sure, but it looks like a copy and paste error.
I think MongoDB 3.6 is more tolerant than 7.0, and we didn't
notice it in the past.
MongoDB 7.0 doesn't seem to have issues with having multiple indexes
on the same field with different configurations, so I've just disabled
one test.
Commit: e86ce29bbdaf75628a09ac97457ad89e4fa99301
https://github.com/hibernate/hibernate-ogm/commit/e86ce29bbdaf75628a09ac9...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M bom/pom.xml
M featurepack/mongodb/pom.xml
M featurepack/mongodb/src/main/modules/ogm/mongodb/module.xml
M mongodb/pom.xml
M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/configuration/impl/MongoDBConfiguration.java
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/impl/MongoDBDatastoreProvider.java
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/options/AuthenticationMechanismType.java
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/options/WriteConcernType.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/datastore/DatastoreInitializationTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/datastore/WriteConcernTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/options/writeconcern/WriteConcernAnnotationTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/options/writeconcern/WriteConcernOptionTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/options/writeconcern/WriteConcernPropagationTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/utils/MockMongoClientBuilder.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/utils/MongoDBTestHelper.java
Log Message:
-----------
OGM-1588 Upgrade MongoDB driver dependency to mongodb-driver-legacy 4.11.3
* Use mongodb-driver-legacy since mongo-java-driver uber jar is not published as of 4.0.
* Replace find modifiers, which were removed in 4.0, with calls to `FindIterable` methods
* Remove support for $maxScan, which is no longer supported by MongoDB
* Handle breaking changes in WriteConcern class
* Handle breaking changes related to MongoCredential
Commit: 043741c1e1e6886153c720e0ea71af2d9045a680
https://github.com/hibernate/hibernate-ogm/commit/043741c1e1e6886153c720e...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/impl/MongoDBDatastoreProvider.java
Log Message:
-----------
OGM-1588 Simplify MongoClient construction
Commit: 74255589676e0dfdb11caa2f29b98b1bef5359de
https://github.com/hibernate/hibernate-ogm/commit/74255589676e0dfdb11caa2...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java
Log Message:
-----------
OGM-1588 Add filter when criteria does not contain $query
Commit: 527f9e5875af6449e1dcea3f2a1e246135a7aa63
https://github.com/hibernate/hibernate-ogm/commit/527f9e5875af6449e1dcea3...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/index/MongoDBIndexTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/parsing/MongoDBQueryParsingTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/utils/MongoDBTestHelper.java
Log Message:
-----------
OGM-1588 Continue to use JsonMode.STRICT for JSON comparison
In the 4.0 Java driver, the default mode changed from
STRICT to RELAXED for Document#toJson. Explicitly setting
the mode to STRICT in tests so that JSON comparisons
continue to work.
Commit: 4d0706fd8da254a5013519680a11a35fb07908c0
https://github.com/hibernate/hibernate-ogm/commit/4d0706fd8da254a50135196...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/MongoDBDialect.java
M
mongodb/src/main/java/org/hibernate/ogm/datastore/mongodb/configuration/impl/MongoDBConfiguration.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/index/MongoDBIndexTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/options/writeconcern/WriteConcernOptionTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/options/writeconcern/WriteConcernPropagationTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/parsing/MongoDBQueryParsingTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/utils/MongoDBTestHelper.java
Log Message:
-----------
OGM-1588 Checkstyle fixes
Commit: fa1ce4cabeea44213af13e1112ff2f5158d45dd5
https://github.com/hibernate/hibernate-ogm/commit/fa1ce4cabeea44213af13e1...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/index/MongoDBIndexTest.java
Log Message:
-----------
OGM-1588 Make MongoDBIndexTest resilient to different versions of MongoDB
Commit: 50810cd489433ed6adadc0a3498e40fb87608854
https://github.com/hibernate/hibernate-ogm/commit/50810cd489433ed6adadc0a...
Author: Jeff Yemin <jeff.yemin(a)mongodb.com>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M bom/pom.xml
M mongodb/pom.xml
Log Message:
-----------
OGM-1588 Add bson-record-codec exclusion
The bson-record-codec module is not needed for hibernate-ogm, and needs to be excluded at
least for tests because the class files in that module are compiled for Java 17 (the
minimum LTS release required for record support).
Commit: 6309e376e2d63f4df66fbe412d0efacc5fa8a50e
https://github.com/hibernate/hibernate-ogm/commit/6309e376e2d63f4df66fbe4...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2024-09-03 (Tue, 03 Sep 2024)
Changed paths:
M .github/workflows/build.yml
M mongodb/pom.xml
Log Message:
-----------
OGM-1588 Update remote MongoDB to 7 in the GitHub workflow
We still test the default build using the embedded MongoDB 3.6.
Tests for calls to stored procedures are disabled for the remote
server because MongoDB 7.0 doesn't support `$eval` anymore.
Commit: 5bc01d4afec3e03f655fc709bea5494f83a0c003
https://github.com/hibernate/hibernate-ogm/commit/5bc01d4afec3e03f655fc70...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2024-09-05 (Thu, 05 Sep 2024)
Changed paths:
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/MongoDBSessionCLIQueryTest.java
M
mongodb/src/test/java/org/hibernate/ogm/datastore/mongodb/test/query/nativequery/OscarWildePoem.java
Log Message:
-----------
OGM-1588 Fix test for `$explain` with native queries
It checks the result of the `$explain` operation, and
it's compatible with MongoDB 7.0 and 3.6
Compare:
https://github.com/hibernate/hibernate-ogm/compare/058d8127c46d...5bc01d4...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-ogm/settings/notifications