[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

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.

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 Thu Mar 22 23:41:12 GMT 2018 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.