[ 
https://issues.apache.org/jira/browse/MRM-1992?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Igor Mukhin updated MRM-1992:
-----------------------------
    Description: 
The configuration of the repository:

{code:xml}
      <managedRepository>
         
<location>D:\archiva-data\data\repositories\internal.snapshots</location>
         <releases>false</releases>
         <blockRedeployments>false</blockRedeployments>
         <snapshots>true</snapshots>
         <scanned>true</scanned>
         <refreshCronExpression>0 6 * * * ?</refreshCronExpression>
         <retentionCount>3</retentionCount>
         <daysOlder>0</daysOlder>
         <deleteReleasedSnapshots>false</deleteReleasedSnapshots>
         <skipPackedIndexCreation>false</skipPackedIndexCreation>
         <stageRepoNeeded>false</stageRepoNeeded>
         <id>internal.snapshots</id>
         <name>internal.snapshots</name>
         <indexDir />
      </managedRepository>
{code}

After a month of operation, old snapshot files are still in the repository 
directory. But in {{maven-metadata.xml}} correnctly listed only 3 last files.

Scans run daily:
{code}
2019-07-12 08:07:17,886 [pool-3-thread-1] INFO  
org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutor 
[] - Finished first scan: 
.\ Scan of internal.snapshots \.__________________________________________
  Repository Dir    : D:\archiva-data\data\repositories\internal.snapshots
  Repository Name   : internal.snapshots
  Repository Layout : default
  Known Consumers   : (8 configured)
                      create-missing-checksums
                      auto-remove
                      auto-rename
                      metadata-updater
                      repository-purge
                      index-content
                      create-archiva-metadata
                      duplicate-artifacts
  Invalid Consumers : <none>
  Duration          : 1 Second 202 Milliseconds
  When Gathered     : 12.07.19 08:07
  Total File Count  : 4707
  Avg Time Per File : 
{code}

  was:
The configuration of the repository:

{code:xml}
      <managedRepository>
         
<location>D:\archiva-data\data\repositories\internal.snapshots</location>
         <releases>false</releases>
         <blockRedeployments>false</blockRedeployments>
         <snapshots>true</snapshots>
         <scanned>true</scanned>
         <refreshCronExpression>0 6 * * * ?</refreshCronExpression>
         <retentionCount>3</retentionCount>
         <daysOlder>0</daysOlder>
         <deleteReleasedSnapshots>false</deleteReleasedSnapshots>
         <skipPackedIndexCreation>false</skipPackedIndexCreation>
         <stageRepoNeeded>false</stageRepoNeeded>
         <id>internal.snapshots</id>
         <name>internal.snapshots</name>
         <indexDir />
      </managedRepository>
{code}

After a month of operation, old snapshot files are still in the repository 
directory. But in {{maven-metadata.xml}} correncly listed only 3 last files.

Scans run daily:
{code}
2019-07-12 08:07:17,886 [pool-3-thread-1] INFO  
org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutor 
[] - Finished first scan: 
.\ Scan of internal.snapshots \.__________________________________________
  Repository Dir    : D:\archiva-data\data\repositories\internal.snapshots
  Repository Name   : internal.snapshots
  Repository Layout : default
  Known Consumers   : (8 configured)
                      create-missing-checksums
                      auto-remove
                      auto-rename
                      metadata-updater
                      repository-purge
                      index-content
                      create-archiva-metadata
                      duplicate-artifacts
  Invalid Consumers : <none>
  Duration          : 1 Second 202 Milliseconds
  When Gathered     : 12.07.19 08:07
  Total File Count  : 4707
  Avg Time Per File : 
{code}


> Obsolete snapshots are not getting deleted from the disk
> --------------------------------------------------------
>
>                 Key: MRM-1992
>                 URL: https://issues.apache.org/jira/browse/MRM-1992
>             Project: Archiva
>          Issue Type: Bug
>    Affects Versions: 2.2.4
>         Environment: Windows
>            Reporter: Igor Mukhin
>            Priority: Major
>
> The configuration of the repository:
> {code:xml}
>       <managedRepository>
>          
> <location>D:\archiva-data\data\repositories\internal.snapshots</location>
>          <releases>false</releases>
>          <blockRedeployments>false</blockRedeployments>
>          <snapshots>true</snapshots>
>          <scanned>true</scanned>
>          <refreshCronExpression>0 6 * * * ?</refreshCronExpression>
>          <retentionCount>3</retentionCount>
>          <daysOlder>0</daysOlder>
>          <deleteReleasedSnapshots>false</deleteReleasedSnapshots>
>          <skipPackedIndexCreation>false</skipPackedIndexCreation>
>          <stageRepoNeeded>false</stageRepoNeeded>
>          <id>internal.snapshots</id>
>          <name>internal.snapshots</name>
>          <indexDir />
>       </managedRepository>
> {code}
> After a month of operation, old snapshot files are still in the repository 
> directory. But in {{maven-metadata.xml}} correnctly listed only 3 last files.
> Scans run daily:
> {code}
> 2019-07-12 08:07:17,886 [pool-3-thread-1] INFO  
> org.apache.archiva.scheduler.repository.ArchivaRepositoryScanningTaskExecutor 
> [] - Finished first scan: 
> .\ Scan of internal.snapshots \.__________________________________________
>   Repository Dir    : D:\archiva-data\data\repositories\internal.snapshots
>   Repository Name   : internal.snapshots
>   Repository Layout : default
>   Known Consumers   : (8 configured)
>                       create-missing-checksums
>                       auto-remove
>                       auto-rename
>                       metadata-updater
>                       repository-purge
>                       index-content
>                       create-archiva-metadata
>                       duplicate-artifacts
>   Invalid Consumers : <none>
>   Duration          : 1 Second 202 Milliseconds
>   When Gathered     : 12.07.19 08:07
>   Total File Count  : 4707
>   Avg Time Per File : 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to