Creating one GzippedInputStream per file and reading
from them the first line of each in parallel (using one
Thread per file) throws "Corrupt GZIP trailer"
IOExceptions for each Thread at arbitrary positions.
The problem is the way how GzippedInputStream skips
over remaining record content. It uses a static byte[]
buffer where each thread puts in a certain number of
bytes until it's finished.
The attached patch now makes GZIPInputStream use
InflaterInputStream's own skip() method for that.
Christian
Nobody/Anonymous
Disk I/O
1.6.0
Public
|
Date: 2007-03-14 00:54
|
|
Date: 2005-06-10 19:53 Logged In: YES |
|
Date: 2005-06-10 19:26 Logged In: YES |
|
Date: 2005-06-10 17:06 Logged In: YES |
| Filename | Description | Download |
|---|---|---|
| GzippedInputStream.patch | GzippedInputStream patch | Download |
| Field | Old Value | Date | By |
|---|---|---|---|
| artifact_group_id | None | 2005-09-23 18:27 | gojomo |
| status_id | Open | 2005-06-10 19:53 | stack-sf |
| resolution_id | None | 2005-06-10 19:53 | stack-sf |
| close_date | - | 2005-06-10 19:53 | stack-sf |
| File Added | 137870: GzippedInputStream.patch | 2005-06-10 08:17 | ck-heritrix |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use