Move idx-snapshots out of /caches

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • None
    • Component/s: None
    • None

      The caches/idx-snapshots directory is not safe to delete. Deleting it will cause Stash's indexing process to fall over with exceptions like:

      2012-07-30 13:58:37,938 ERROR [pool-4-thread-1] jh 815x27x1 a7bq5z 93.220.70.231,217.115.149.100 /projects/PRJ/repos/my-repo/browse c.a.s.i.i.impl.ChangesetIndexingJob Error during indexing of my-repo
      com.atlassian.stash.exception.ServerException: An error occurred while executing an external process: /opt/stash/caches/idx-snapshots/1/1339427723617 (No such file or directory)
      ...
      Caused by: java.io.FileNotFoundException: /opt/stash/caches/idx-snapshots/1/1339427723617 (No such file or directory)
      	at java.io.FileInputStream.open(Native Method) ~[na:1.7.0_04]
      	at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[na:1.7.0_04]
      	at java.io.FileReader.<init>(FileReader.java:72) ~[na:1.7.0_04]
      

      Instead, idx-snapshots should either be moved to /data to indicate that it is not safe to delete or brought into the DB.

      If it is kept on the file system it would be good to make Stash resilient enough to just reindex the entire repository if a file is missing.

              Assignee:
              Unassigned
              Reporter:
              TimP
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: