Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2341

Updates made by reindexing are lost after repository restart

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.1.0.Final
    • 4.0.0.Final
    • Query
    • None
    • Hide

      1) Configure a repository with FileSystemConnector and create some nodes under FSC with indexes
      2) Stop the repository and delete the LocalIndexProvider's index files
      3) Start the repository and reindex
      4) Restart the repository (step 3 updates are lost), queries using step 1) indexes return no results.

      Show
      1) Configure a repository with FileSystemConnector and create some nodes under FSC with indexes 2) Stop the repository and delete the LocalIndexProvider's index files 3) Start the repository and reindex 4) Restart the repository (step 3 updates are lost), queries using step 1) indexes return no results.

    Description

      After reindexing a repository with the API in org.modeshape.jcr.api.Workspace, updates to indexes are lost during the next restart of the repository. This has the effect that queries to nodes under FileSystemConnector stop returning results, the index is still used but it appears not to contain any data.

      Additionally the file size on local-indexes.db.t keeps increasing rapidly with each subsequent reindex (this is reset during restart).

      This is what happens to Local Index Provider's index files (it seems like there is some issue with committing the changes to MapDB):

      1) A fresh repository is started and some nodes are created under FileSystemConnector with the JCR API:
      local-indexes.db 34168 B
      local-indexes.db.p 2066288 B
      local-indexes.db.t 16 B

      2) After deleting the index files and restarting the repository
      local-indexes.db 32968 B
      local-indexes.db.p 184 B
      local-indexes.db.t 54545 B

      3) After reindexing the repository manually:
      local-indexes.db 32968 B
      local-indexes.db.p 184 B
      local-indexes.db.t 2758843 B

      4) After restarting the repository index files revert back to state 2), before indexing

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            tsallinen_jira Timo Sallinen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: