incubator-jena-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo Castagna (Updated) (JIRA)" <>
Subject [jira] [Updated] (JENA-137) RecordsFromInput does not work properly with GZIPInputStream
Date Tue, 11 Oct 2011 18:49:11 GMT


Paolo Castagna updated JENA-137:

    Attachment: JENA-137.patch

This works fine with GZIPInputSream(s) and it does not change the behavior of the fill() private

I have been using the classes in the bulkloader2 elsewhere and it would help me to be able
to use RecordsFromInput with GZIPInputStream.

I am attaching the patch just to have another pair of eyes to double check it.
> RecordsFromInput does not work properly with GZIPInputStream
> ------------------------------------------------------------
>                 Key: JENA-137
>                 URL:
>             Project: Jena
>          Issue Type: Improvement
>          Components: TDB
>            Reporter: Paolo Castagna
>            Priority: Trivial
>         Attachments: JENA-137.patch
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> This is classified as a trivial improvement and not a bug because it does not affect
tdbloader2 users.
> RecordsFromInput is it used by BPlusTreeRewriter in tdbloader2:
> tdbloader2 happens to use non compressed InputStream and it works fine.
> However, when I tried to use RecordsFromInput with a GZIPInputStream I got this exception:
> Exception in thread "main" org.openjena.atlas.AtlasException: Wrong length: 4908
> 	at org.apache.jena.tdb.bulkloader2.RecordsFromInput.fill(
> 	at org.apache.jena.tdb.bulkloader2.RecordsFromInput.hasNext(
> 	at com.hp.hpl.jena.tdb.index.bplustree.BPlusTreeRewriter.packIntoBPlusTree(
> 	at org.apache.jena.tdb.bulkloader2.CmdIndexBuild.main(
> 	at
> The problem is in the private fill() method in RecordsFromInput.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message