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

Locking index structures during writes

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.6
    • Fix Version/s: 4.0
    • Component/s: None
    • Labels:
      None

      Description

      For terrier, we need to have locking: if an index is open for writing, no-one else can write it also. Writing and reading needs to be considered also: it might not be permitted in the 4.x.

        Attachments

          Activity

          Hide
          richardm Richard McCreadie added a comment -

          Finished adding unit tests for concurrent indexing and retrieval. Exceptions are checked for indexing, retrieval and for Lexicon/MetaIndex look-ups.

          Tagged for resolution.

          Show
          richardm Richard McCreadie added a comment - Finished adding unit tests for concurrent indexing and retrieval. Exceptions are checked for indexing, retrieval and for Lexicon/MetaIndex look-ups. Tagged for resolution.
          Hide
          richardm Richard McCreadie added a comment -

          Identified synchronization issue in FSOrderedMapFile when retrieving from multiple threads.

          Synchronizing dataFile fixes this issue

          Show
          richardm Richard McCreadie added a comment - Identified synchronization issue in FSOrderedMapFile when retrieving from multiple threads. Synchronizing dataFile fixes this issue
          Hide
          richardm Richard McCreadie added a comment - - edited

          Added unit test for multi-threaded indexing and retrieval.

          Added synchronized blocks for indexDocument() for classes that extend UpdatableIndex (MemoryIndex and IncrementalIndex)

          Show
          richardm Richard McCreadie added a comment - - edited Added unit test for multi-threaded indexing and retrieval. Added synchronized blocks for indexDocument() for classes that extend UpdatableIndex (MemoryIndex and IncrementalIndex)

            People

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

              Dates

              • Created:
                Updated:
                Resolved: