gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (Jira)" <j...@apache.org>
Subject [jira] [Commented] (GORA-649) Replace usage of deprecated API of MongoDB driver
Date Sun, 29 Mar 2020 18:26:00 GMT

    [ https://issues.apache.org/jira/browse/GORA-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17070464#comment-17070464
] 

Hudson commented on GORA-649:
-----------------------------

SUCCESS: Integrated in Jenkins build gora-trunk #1838 (See [https://builds.apache.org/job/gora-trunk/1838/])
GORA-649 Remove usage of com.mongodb.MongoClient in test code (drazzib: rev d65aa1f3333467cb5a79029f585d76cf25797f94)
* (edit) gora-mongodb/src/test/java/org/apache/gora/mongodb/GoraMongodbTestDriver.java
* (edit) gora-mongodb/src/test/java/org/apache/gora/mongodb/filters/DefaultFactoryTest.java


> Replace usage of deprecated API of MongoDB driver
> -------------------------------------------------
>
>                 Key: GORA-649
>                 URL: https://issues.apache.org/jira/browse/GORA-649
>             Project: Apache Gora
>          Issue Type: Improvement
>          Components: gora-mongodb
>            Reporter: Damien Raude-Morvan
>            Assignee: Damien Raude-Morvan
>            Priority: Major
>              Labels: patch
>             Fix For: 1.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> After upgrade to 3.12 release of {{mongo-java-driver}} (in GORA-645), I've identified
that we use some deprecated methods. Those methods will be removed in next (4.x) release of
{{mongo-java-driver}}.
> Here is extract of warnings printed by javac :
> {code:java}
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[75,18]
[deprecation] Bytes in com.mongodb has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[80,18]
[deprecation] Mongo in com.mongodb has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[210,11]
[deprecation] MongoClient(List<ServerAddress>,List<MongoCredential>,MongoClientOptions)
in MongoClient has been deprecated
> [WARNING] 15] [deprecation] MONGODB_CR in AuthenticationMechanism has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[230,34]
[deprecation] createMongoCRCredential(String,String,char[]) in MongoCredential has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[249,54]
[deprecation] getDB(String) in Mongo has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[292,67]
[deprecation] getMongo() in DB has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[313,69]
[deprecation] getMongo() in DB has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[338,14]
[deprecation] fsync(boolean) in Mongo has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[506,23]
[deprecation] Bytes in com.mongodb has been deprecated
> [WARNING] gora-mongodb/src/main/java/org/apache/gora/mongodb/store/MongoStore.java:[506,12]
[deprecation] addOption(int) in DBCursor has been deprecated{code}
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message