Java Driver
  1. Java Driver
  2. JAVA-281

when dropping a database or a collection, they remain in the driver cache, which can lead to problems

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major - P3 Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • Operating System:
      ALL
    • # Replies:
      3
    • Last comment by Customer:
      false

      Description

      this may lead to issue if it's recreated later.
      For example write concern and query options will not take new values from mongo.
      Or the authentication data from DB object.

        Activity

        Hide
        auto
        added a comment -

        Author:

        {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

        Message: JAVA-281: when dropping a database or a collection, they remain in the driver cache, which can lead to problems
        https://github.com/mongodb/mongo-java-driver/commit/6f91dc93ad8e85bd1e3be4c321d231cb8bccdd6a

        Show
        auto
        added a comment - Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'} Message: JAVA-281 : when dropping a database or a collection, they remain in the driver cache, which can lead to problems https://github.com/mongodb/mongo-java-driver/commit/6f91dc93ad8e85bd1e3be4c321d231cb8bccdd6a
        Hide
        Antoine Girbal
        added a comment -

        db is removed from cache in Mongo.java
        collection is removed from cache in DbApiLayer.java
        removed the caching set seenCollections in DB.java since it does not really provide any feature.

        Show
        Antoine Girbal
        added a comment - db is removed from cache in Mongo.java collection is removed from cache in DbApiLayer.java removed the caching set seenCollections in DB.java since it does not really provide any feature.
        Hide
        auto
        added a comment -

        Author:

        {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}

        Message: JAVA-281: still need to ignore error due to ns not existing
        https://github.com/mongodb/mongo-java-driver/commit/40aec21bf4156f49943cb912a8c89ab8c2cc4335

        Show
        auto
        added a comment - Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'} Message: JAVA-281 : still need to ignore error due to ns not existing https://github.com/mongodb/mongo-java-driver/commit/40aec21bf4156f49943cb912a8c89ab8c2cc4335

          People

          • Assignee:
            Antoine Girbal
            Reporter:
            Antoine Girbal
            Participants:
            Last commenter:
            Barrie Segal
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              3 years, 7 weeks, 6 days ago
              Date of 1st Reply: