[ 
https://jira.codehaus.org/browse/MRM-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=271167#comment-271167
 ] 

Greg Michael Meneses commented on MRM-1342:
-------------------------------------------

I noticed these logs on first start:

2011-06-23 11:07:17,112 [Thread-28] ERROR taskQueueExecutor#repository-scanning 
- Error executing task
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: 
java.lang.UnsupportedOperationException: Unable to scan a repository, directory 
./data/repository/snapshots does not exist.

2011-06-23 11:07:17,114 [Thread-28] ERROR taskQueueExecutor#repository-scanning 
- Error executing task
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: 
java.lang.UnsupportedOperationException: Unable to scan a repository, directory 
./data/repository/releases does not exist.

2011-06-23 11:07:17,117 [Thread-28] ERROR taskQueueExecutor#repository-scanning 
- Error executing task
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: 
java.lang.UnsupportedOperationException: Unable to scan a repository, directory 
./data/repository/internal does not exist.

2011-06-23 11:07:17,120 [Thread-28] ERROR taskQueueExecutor#repository-scanning 
- Error executing task
edu.emory.mathcs.backport.java.util.concurrent.ExecutionException: 
java.lang.UnsupportedOperationException: Unable to scan a repository, directory 
./data/repository/sandbox does not exist.

At this point, all 4 repositories are not displayed on the Statistics Report 
page.

On restart however, data from these repositories can be retrieve and will be 
displayed on the Statistics Report page.

So there may be a timing issue during startup regarding the creation of the 
initial repositories and the scanning.

Also same thing occurs when adding a managed repository; no statistics is 
retrieved unless 'Scan Repository Now' button is clicked.

With regards to some repositories are missing, the problem is that some 
selected repositories have no statistics (especially ones that are recently 
added and have not been scanned), then since repositories in the selection are 
not sorted (Internal repository is likely to be last as is observed), the 
number of statistics available is lesser than the selected repositories.
So repositories at the end of the selection will have no data and not be 
displayed.

Can we force a scan during addition of a repository? Also I have observed that 
when deploying an artifact on the repository, the statistics does not get 
updated unless the 'Scan Repository Now' button is clicked. Or is there a 
schedule for scanning of the repositories? 

> repository statistics report doesn't appear to be working correctly
> -------------------------------------------------------------------
>
>                 Key: MRM-1342
>                 URL: https://jira.codehaus.org/browse/MRM-1342
>             Project: Archiva
>          Issue Type: Bug
>          Components: Repository Statistics
>    Affects Versions: 1.4
>            Reporter: Brett Porter
>             Fix For: 1.4-M1
>
>
> when I view the repository statistics report and include all repositories in 
> the list, not all of them appear in the output (internal is missing, for 
> example).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to