Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-164

Document index structure is left open when index.close() is called

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.5
    • Component/s: None
    • Labels:
      None

      Description

      When the index.close() method is called, all index structures should be closed. However, the file handle for the document index is left open in 3.0. This can cause jobs that open and close many indices during operation to run out of file handles.

        Attachments

          Activity

          richardm Richard McCreadie created issue -
          Hide
          richardm Richard McCreadie added a comment -

          Traced to the FSArrayFile class, which does not contain a close() method.
          FSArrayFile now implements the Closable interface.
          Testing indicates the all structures are now closed correctly.

          Committed 3402

          Show
          richardm Richard McCreadie added a comment - Traced to the FSArrayFile class, which does not contain a close() method. FSArrayFile now implements the Closable interface. Testing indicates the all structures are now closed correctly. Committed 3402
          richardm Richard McCreadie made changes -
          Field Original Value New Value
          Summary Document index structure is left open when index.close() is callled Document index structure is left open when index.close() is called
          richardm Richard McCreadie made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          craigm Craig Macdonald made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Assignee Iadh Ounis [ ounis ] Richard McCreadie [ richardm ]
          craigm Craig Macdonald made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          craigm Craig Macdonald made changes -
          Fix Version/s 3.1 [ 10021 ]
          craigm Craig Macdonald made changes -
          Project TREC [ 10010 ] Terrier Core [ 10000 ]
          Key TREC-245 TR-164
          Workflow jira [ 10556 ] Terrier Open Source [ 10566 ]
          Affects Version/s 3.0 [ 10030 ]
          Affects Version/s 3.0 [ 10020 ]
          Fix Version/s 3.1 [ 10040 ]
          Fix Version/s 3.1 [ 10021 ]

            People

            • Assignee:
              richardm Richard McCreadie
              Reporter:
              richardm Richard McCreadie
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: