Race Condition in WorkingFileRepository causes some processing runs to fail

Steps to reproduce

Steps to reproduce:
1. Process a lecture

Actual Results:
15:31:48 INFO (WorkingFileRepositoryImpl:359) - created collection directory ocrtext
15:31:48 WARN (TextAnalyzerServiceImpl:229) - Error extracting text from http://localhost:8080/files/collection/composer/97.tif
java.lang.IllegalStateException: can not create collection directory/home/greg/felix/work/files/collection/ocrtext
at org.opencastproject.workingfilerepository.impl.WorkingFileRepositoryImpl.getCollectionDirectory(WorkingFileRepositoryImpl.java:361)
at org.opencastproject.workingfilerepository.impl.WorkingFileRepositoryImpl.putInCollection(WorkingFileRepositoryImpl.java:432)
at org.opencastproject.workspace.impl.WorkspaceImpl.putInCollection(WorkspaceImpl.java:414)
at org.opencastproject.textanalyzer.impl.TextAnalyzerServiceImpl.extract(TextAnalyzerServiceImpl.java:217)
at org.opencastproject.textanalyzer.impl.TextAnalyzerServiceImpl.process(TextAnalyzerServiceImpl.java:253)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:184)
at org.opencastproject.job.api.AbstractJobProducer$JobRunner.call(AbstractJobProducer.java:156)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

Expected Results:
A working processing run.

Workaround (if any):
Unknown, it doesn't happen every time. I'm wondering if this is a race condition?

Status

Assignee

Greg Logan

Reporter

Greg Logan

Severity

Incorrectly Functioning With Workaround

Tags (folksonomy)

None

Components

Fix versions

Affects versions

1.2

Priority

Major
Configure