]> source.dussan.org Git - archiva.git/commit
[MRM-142, MRM-134] remove timestamp handling and instead simply index records that...
authorBrett Porter <brett@apache.org>
Mon, 4 Sep 2006 05:34:42 +0000 (05:34 +0000)
committerBrett Porter <brett@apache.org>
Mon, 4 Sep 2006 05:34:42 +0000 (05:34 +0000)
commit0d7b2b158b7cf29bb0205507c8c04774dc77bb29
treedf583c63d35b860a6aacc08e1d0551cd4d31ea20
parent2d819799e72970ac3d3450057cd908738a99a006
[MRM-142, MRM-134] remove timestamp handling and instead simply index records that aren't previously indexed. We can add timestamp checking for updating records later, but this removes the problems associated with relying on filesystem timestamps and a single tracking timestamp.
Included in this fix is some refactoring to reduce memory usage, including a hack to flush the project cache periodically. This hack can be removed when the project cache is configurable (see MRM-142).
This now indexes the ibiblio repository from scratch in ~23 minutes, and incremental indexing takes 30-60 seconds.

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@439935 13f79535-47bb-0310-9956-ffa450edef68
23 files changed:
archiva-core/src/main/java/org/apache/maven/archiva/DefaultRepositoryManager.java
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/DefaultRepositoryTaskScheduler.java
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/IndexerTask.java [deleted file]
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTask.java [deleted file]
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/RepositoryTaskJob.java
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexRecordExistsArtifactFilter.java [new file with mode: 0644]
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/IndexerTask.java [new file with mode: 0644]
archiva-core/src/main/java/org/apache/maven/archiva/scheduler/task/RepositoryTask.java [new file with mode: 0644]
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscoverer.java
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/AbstractDiscoverer.java
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/ArtifactDiscoverer.java
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/DefaultMetadataDiscoverer.java
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/Discoverer.java
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/filter/AcceptAllArtifactFilter.java [new file with mode: 0644]
archiva-discoverer/src/main/java/org/apache/maven/archiva/discoverer/filter/SnapshotArtifactFilter.java [new file with mode: 0644]
archiva-discoverer/src/test/java/org/apache/maven/archiva/discoverer/AbstractArtifactDiscovererTest.java
archiva-discoverer/src/test/java/org/apache/maven/archiva/discoverer/DefaultArtifactDiscovererTest.java
archiva-discoverer/src/test/java/org/apache/maven/archiva/discoverer/DefaultMetadataDiscovererTest.java
archiva-discoverer/src/test/java/org/apache/maven/archiva/discoverer/LegacyArtifactDiscovererTest.java
archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/RepositoryArtifactIndex.java
archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/lucene/LuceneRepositoryArtifactIndex.java
archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/lucene/LuceneRepositoryArtifactIndexFactory.java
archiva-indexer/src/main/java/org/apache/maven/archiva/indexer/record/StandardArtifactIndexRecord.java