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

Stefan Bodewig commented on COMPRESS-284:
-----------------------------------------

GzipCompressorInputStream is the one throwing the exception and it is not 
thread-safe in the sense that you can't have to threads reading from the same 
GzipCompressorInputStream instance at the same time.  Reading from different 
instances shouldn't cause any problems, each instance has a CRC of its own.  
Are you sharing the same Gzip input stream with multiple consumers?


> 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