Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1146

jena.textindexer does not close resources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.0.1
    • Jena 3.1.0
    • Cmd line tools, Jena, Text
    • None

    Description

      This is a bit of a minor issue since the jena.textindexer is meant to be ran from the command line. But in our app we call it directly from the JVM process and then proceed to do some other operations. This fails when also using the text index, since Lucene can't acquire a lock in that case (it's limited to one connection). As a work-around we now set the textIndex and dataset fields to public using reflection, and manually close the resources. But ideally this should happen after the main command body.

      Attachments

        Activity

          People

            osma Osma Suominen
            joelkuiper Joël Kuiper
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: