lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-1591) Enable bzip compression in benchmark
Date Tue, 14 Apr 2009 09:41:15 GMT


Michael McCandless commented on LUCENE-1591:

I had some trouble w/ the patch...

First, I had to edit contrib/benchmark's build.xml to add the compress JAR onto the classpath
(things wouldn't compile otherwise).

Then I see failures in TestPerfTasksParse, eg:

    [junit] java.lang.Exception: Error: cannot understand algorithm!
    [junit] 	at org.apache.lucene.benchmark.byTask.Benchmark.<init>(
    [junit] 	at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.doTestAllTasksSimpleParse(
    [junit] 	at org.apache.lucene.benchmark.byTask.TestPerfTasksParse.testAllTasksSimpleParse(
    [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke(
    [junit] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    [junit] 	at java.lang.reflect.Method.invoke(
    [junit] 	at junit.framework.TestCase.runTest(
    [junit] 	at junit.framework.TestCase.runBare(
    [junit] 	at junit.framework.TestResult$1.protect(
    [junit] 	at junit.framework.TestResult.runProtected(
    [junit] 	at
    [junit] 	at
    [junit] 	at junit.framework.TestSuite.runTest(
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] 	at
    [junit] Caused by: java.lang.reflect.InvocationTargetException
    [junit] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [junit] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
    [junit] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
    [junit] 	at java.lang.reflect.Constructor.newInstance(
    [junit] 	at org.apache.lucene.benchmark.byTask.utils.Algorithm.<init>(
    [junit] 	at org.apache.lucene.benchmark.byTask.Benchmark.<init>(
    [junit] 	... 19 more
    [junit] Caused by: java.lang.IllegalArgumentException: line.file.out must be set
    [junit] 	at org.apache.lucene.benchmark.byTask.tasks.WriteLineDocTask.<init>(
    [junit] 	... 25 more

And the new LineDocMakerTest fails with this:
    [junit] Testcase: testBZip2WithBzipCompressionDisabled(org.apache.lucene.benchmark.byTask.feeds.LineDocMakerTest):
    [junit] expected:<1> but was:<0>
    [junit] junit.framework.AssertionFailedError: expected:<1> but was:<0>
    [junit] 	at org.apache.lucene.benchmark.byTask.feeds.LineDocMakerTest.doIndexAndSearchTest(
    [junit] 	at org.apache.lucene.benchmark.byTask.feeds.LineDocMakerTest.testBZip2WithBzipCompressionDisabled(

WriteLineDocTest shows a similar failure.  Not sure what's up...

> Enable bzip compression in benchmark
> ------------------------------------
>                 Key: LUCENE-1591
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: contrib/benchmark
>            Reporter: Shai Erera
>             Fix For: 2.9
>         Attachments: commons-compress-dev20090413.jar, commons-compress-dev20090413.jar,
LUCENE-1591.patch, LUCENE-1591.patch, LUCENE-1591.patch, LUCENE-1591.patch
> bzip compression can aid the benchmark package by not requiring extracting bzip files
(such as enwiki) in order to index them. The plan is to add a config parameter bzip.compression=true/false
and in the relevant tasks either decompress the input file or compress the output file using
the bzip streams.
> It will add a dependency on ant.jar which contains two classes similar to GZIPOutputStream
and GZIPInputStream which compress/decompress files using the bzip algorithm.
> bzip is known to be superior in its compression performance to the gzip algorithm (~20%
better compression), although it does the compression/decompression a bit slower.
> I wil post a patch which adds this parameter and implement it in LineDocMaker, EnwikiDocMaker
and WriteLineDoc task. Maybe even add the capability to DocMaker or some of the super classes,
so it can be inherited by all sub-classes.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message