You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Micah Kornfield (Jira)" <ji...@apache.org> on 2019/10/12 05:22:00 UTC
[jira] [Resolved] (ARROW-6721) [JAVA] Avro adapter benchmark only
runs once in JMH
[ https://issues.apache.org/jira/browse/ARROW-6721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Micah Kornfield resolved ARROW-6721.
------------------------------------
Fix Version/s: 1.0.0
Resolution: Fixed
Issue resolved by pull request 5524
[https://github.com/apache/arrow/pull/5524]
> [JAVA] Avro adapter benchmark only runs once in JMH
> ---------------------------------------------------
>
> Key: ARROW-6721
> URL: https://issues.apache.org/jira/browse/ARROW-6721
> Project: Apache Arrow
> Issue Type: Sub-task
> Components: Java
> Reporter: Ji Liu
> Assignee: Ji Liu
> Priority: Minor
> Labels: pull-request-available
> Fix For: 1.0.0
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> The current {{AvroAdapterBenchmark}} actually only run once during JMH evaluation, since the decoder was consumed for the first time and the follow-up invokes will directly return.
> To solve this, we use {{BinaryDecoder}} explicitly in benchmark and reset its inner stream first when the test method is invoked.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)