Uploaded image for project: 'Rya'
  1. Rya
  2. RYA-413

MongoDB Rya DAO not closing MongoClient properly

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.2.12
    • Fix Version/s: 3.2.12
    • Component/s: dao
    • Labels:
      None

      Description

      If the MongoDBRyaDAO is destroyed, its internal mongoClient is not disposed correctly. This leaves the mongoClient closed which causes problems the next time the MongoDBRyaDAO is created.

      The mongoClient is managed by MongoConnectorFactory and needs to be null'ed out to be recreated properly (by calling MongoConnectorFactory.closeMongoClient(); instead of mongoClient.close()

      Also, all the static final config tags inside AbstractMongoDBRdfConfigurationBuilder should be changed from protected to public (like AbstractAccumuloRdfConfigurationBuilder has) so they could be used inside other tests that make use of the tags.

        Attachments

          Activity

            People

            • Assignee:
              ejwhite922 Eric White
              Reporter:
              ejwhite922 Eric White
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: