Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-649

Replace usage of deprecated API of MongoDB driver

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • gora-mongodb

    Description

      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 :

      [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

       

       

       

      Attachments

        Issue Links

          Activity

            People

              drazzib Damien Raude-Morvan
              drazzib Damien Raude-Morvan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h