[TR-164] Document index structure is left open when index.close() is called Created: 19/May/11  Updated: 13/Jun/11  Resolved: 13/Jun/11

Status: Resolved
Project: Terrier Core
Component/s: None
Affects Version/s: 3.0
Fix Version/s: 3.5

Type: Bug Priority: Major
Reporter: Richard McCreadie Assignee: Richard McCreadie
Resolution: Fixed  
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.


 Comments   
Comment by Richard McCreadie [ 19/May/11 ]

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

Generated at Sat Dec 16 18:29:14 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.