I've upgraded the nexus indexer to 3.0.1 against the 1.3.x branch in my local
machine. And tested it on the server. I experienced the "too many open files"
during the first scan of the repository and only occurred to a few files and
after scanning it a couple of times and it didn't occurred back.
Here's are some of the logs
**************
2010-10-07 16:22:55,876 [pool-3-thread-1] ERROR
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor -
Error occurred while executing indexing task 'ArtifactIndexingTask
[action=FINISH, repositoryId=internal, resourceFile=null]': cannot read
directory
org.apache.lucene.store.FSDirectory@/data/repository/internal/.indexer: list()
returned null
2010-10-07 16:22:55,877 [pool-3-thread-1] ERROR
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor -
Error occurred while closing context:
/data/repository/internal/.indexer/timestamp (Too many open files)
2010-10-07 16:22:55,877 [pool-3-thread-1] ERROR taskQueueExecutor#indexing -
Error executing task
org.codehaus.plexus.taskqueue.execution.TaskExecutionException: Error occurred
while closing context: /data/repository/internal/.indexer/timestamp (Too many
open files)
at
org.apache.maven.archiva.scheduled.executors.ArchivaIndexingTaskExecutor.executeTask(ArchivaIndexingTaskExecutor.java:112)
at
org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable$1.run(ThreadedTaskQueueExecutor.java:116)
at
edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
at
edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
at java.lang.Thread.run(Thread.java:595)
********************
Thanks,
Gwen
--- On Mon, 10/4/10, Gwen Harold Autencio <[email protected]> wrote:
> From: Gwen Harold Autencio <[email protected]>
> Subject: Re: MRM-1097 - too many open file
> To: [email protected]
> Date: Monday, October 4, 2010, 10:29 PM
> I'm trying to upgrade the nexus
> indexer to version 3.0.1 in my local to archiva, to verify
> if the "too many open files" would still occur but I haven't
> successful upgrade it yet locally to test it
> I'm getting failed test in NexusRepositorySearchTest. I've
> already tried to remove "plexus-container-default" from the
> trunk pom and added it in archiva-indexer module with a
> scope test on it.
>
> Any ideas on this error ?
>
> This is the error I'm getting
>
> *****************************
> testQuickSearch(org.apache.archiva.indexer.search.NexusRepositorySearchTest)
> Time elapsed: 1.118 sec <<< ERROR!
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'nexusSearch' defined in URL
> [file:/home/gwen/Desktop/archiva/archiva-modules/archiva-base/archiva-indexer/target/classes/META-INF/spring-context.xml]:
> Cannot resolve reference to bean 'nexusIndexer' while
> setting constructor argument; nested exception is
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'nexusIndexer': FactoryBean
> threw exception on object creation; nested exception is
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'queryCreator': FactoryBean
> threw exception on object creation; nested exception is
> org.springframework.beans.factory.NoSuchBeanDefinitionException:
> No bean named 'logger' is defined
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
> at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
> at
> org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
> *****************************
>
> Thanks,
> Gwen
>
> --- On Sun, 10/3/10, Deng Ching <[email protected]>
> wrote:
>
> From: Deng Ching <[email protected]>
> Subject: Re: MRM-1097 - too many open file
> To: [email protected]
> Date: Sunday, October 3, 2010, 12:02 PM
>
> Thanks Gwen!
>
> I found a similar issue in Nexus
> (https://issues.sonatype.org/browse/NEXUS-3485) and I
> checked the
> version of the indexer used and it's 3.0.1. We are
> currently using
> version 2.0.0 of the indexer in Archiva 1.3.1 while trunk
> is using
> version 2.0.6. As Brett mentioned, upgrading the indexer
> might fix
> this problem but we need to verify.
>
> -Deng
>
>
>
>
>
>