[
https://issues.apache.org/jira/browse/CASSANDRA-10672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14995945#comment-14995945
]
Russ Hatch commented on CASSANDRA-10672:
----------------------------------------
Repeated runs of UFTest.java with and without jacoco look good locally (for all
three patches).
CI results here (I still need to pore over results and see if anything looks
off):
2.2:
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_22-dtest/lastCompletedBuild/testReport/
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_22-testall/lastCompletedBuild/testReport/
3.0/3.1:
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_30-dtest/lastCompletedBuild/testReport/
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_30-testall/lastCompletedBuild/testReport/
trunk:
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_trunk-dtest/lastCompletedBuild/testReport/
http://cassci.datastax.com/view/Dev/view/knifewine/job/knifewine-fix_udf_for_jacoco_trunk-testall/lastCompletedBuild/testReport/
> jacoco instrumentation breaks UDF validation
> --------------------------------------------
>
> Key: CASSANDRA-10672
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10672
> Project: Cassandra
> Issue Type: Bug
> Reporter: Russ Hatch
> Assignee: Russ Hatch
> Fix For: 3.2
>
> Attachments: cassandra-2.2-10672.txt, cassandra-3.1-10672.txt,
> trunk-10672.txt
>
>
> The jacoco agent injects a synthetic method into UDF classes as part of
> instrumentation for code coverage. Currently the UDF code checks the method
> count on java UDF classes, and it fails due to the jacoco synthetic method
> increasing the method count.
> This causes a number of false test failures when running unit tests with
> jacoco instrumentation.
> A simple fix is just to ignore synthetic methods in the counting process.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)