gora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Damien Raude-Morvan (Jira)" <j...@apache.org>
Subject [jira] [Updated] (GORA-649) Replace usage of deprecated API of MongoDB driver
Date Mon, 23 Mar 2020 22:47:00 GMT

     [ https://issues.apache.org/jira/browse/GORA-649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Damien Raude-Morvan updated GORA-649:
-------------------------------------
    Labels: patch  (was: )

> 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
>          Time Spent: 10m
>  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