[ 
https://issues.apache.org/jira/browse/COMPRESS-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032375#comment-14032375
 ] 

Julien Aymé commented on COMPRESS-284:
--------------------------------------

The problem will also occur if you are using the same InputStream archiveData 
on different threads.
Indeed, each thread will read bytes from the source, and the 
GzipCompressorInputStream will consider it as a corrupted stream (since it 
won't have all the data).

Regards,
Julien

> Multi Thread Uncompress TGZ - CRC32 ERROR
> -----------------------------------------
>
>                 Key: COMPRESS-284
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-284
>             Project: Commons Compress
>          Issue Type: Bug
>    Affects Versions: 1.8.1
>         Environment: Linux
>            Reporter: Inspico
>
> We have to uncompress ".tar.gz".
> So we use an "TarArchiveInputStream(GzipCompressorInputStream)".
> An archive extracted alone works perfectly.
> But when we have to launch paralleles thread to extract many archives at the 
> same time we get the same error for each thread :
> java.lang.Exception: Error while extracting list of files from Archive : 
> java.io.IOException: Gzip-compressed data is corrupt (CRC32 error)
> Sometimes we may have a success for only one archive among all errors.
> Is there any problems on the use of TarInputStream or GZIPInputStream in 
> multi-thread ?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to