ever-been / everBeen

EverBEEN is a generic benchmarking environment focused on platform-independent middleware benchmarking.
www.everbeen.cz
GNU Lesser General Public License v3.0
7 stars 3 forks source link

-SNAPSHOT version causes exception in ZipFileUtil.unzipToDir #112

Closed sixtam closed 11 years ago

sixtam commented 11 years ago

We changed version from 3.0.0 to 3.0.0-SNAPSHOT in task-test/pom.xml (and also in td.xml) and were rewarded by an zip related exception. WTF? Only few files were extracted ...

I would use an java zip library but they all suck as far as i know ... does anybody know a good java zip library?

radek-macha commented 11 years ago

I'll look into this, the ZipStream work handling unpacking BPKs is something I devised a couple of months ago.

radek-macha commented 11 years ago

I tried modifying the code using ZipArchiveInputStream, which reports a similar error. It could be that something is off with the BPK packaging.

radek-macha commented 11 years ago

The issue was caused by a concurrent read and write of the same file (enabled by SNAPSHOT). The reason was that SoftwareRepository was using the same folder as BPK storage as the HostRuntime was using for caching these.