Details
-
Bug
-
Resolution: Fixed
-
Critical
-
0.19
-
None
Description
When putting a file, the reference pillar fails to create it if it already exists in the tmpDir, for instance because of a wrong checksum:
1. Put file with wrong checksum
2. Put file with same FileID with correct checksum
Stack trace:
2012-09-09 12:19:24.923 [ActiveMQ Session Task-103] WARN o.b.p.r.m.ReferencePillarMediator - Unexpected exception caught.
java.lang.IllegalStateException: Cannot create a new file in the temporary directory.
at org.bitrepository.pillar.referencepillar.archive.ArchiveDirectory.getNewFileInTempDir(ArchiveDirectory.java:124) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.pillar.referencepillar.archive.ReferenceArchive.downloadFileForValidation(ReferenceArchive.java:113) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.pillar.referencepillar.messagehandler.PutFileRequestHandler.retrieveFile(PutFileRequestHandler.java:175) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.pillar.referencepillar.messagehandler.PutFileRequestHandler.processRequest(PutFileRequestHandler.java:78) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.pillar.referencepillar.messagehandler.PutFileRequestHandler.processRequest(PutFileRequestHandler.java:55) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.pillar.common.PillarMediator.handleRequest(PillarMediator.java:67) ~[bitrepository-reference-pillar-0.19.jar:na]
at org.bitrepository.service.contributor.AbstractContributorMediator$GeneralRequestHandler.onMessage(AbstractContributorMediator.java:98) [bitrepository-service-0.19.jar:na]
at org.bitrepository.protocol.activemq.ActiveMQMessageBus$ActiveMQMessageListener.onMessage(ActiveMQMessageBus.java:386) [bitrepository-core-0.19.jar:na]
at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:1298) [activemq-core-5.6.0.jar:5.6.0]
at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:131) [activemq-core-5.6.0.jar:5.6.0]
at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:202) [activemq-core-5.6.0.jar:5.6.0]
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) [activemq-core-5.6.0.jar:5.6.0]
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) [activemq-core-5.6.0.jar:5.6.0]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_22]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_22]
at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
Attachments
Issue Links
- mentioned in
-
Page Loading...