You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Russ Hatch (JIRA)" <ji...@apache.org> on 2015/11/07 20:00:12 UTC

[jira] [Updated] (CASSANDRA-10672) jacoco instrumentation breaks UDF validation

     [ https://issues.apache.org/jira/browse/CASSANDRA-10672?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russ Hatch updated CASSANDRA-10672:
-----------------------------------
    Attachment: trunk-10672.txt

attaching patch. UFT tests looks good with and without jacoco instrumentation, but I'll follow up here with a full unit test run both ways.

> 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: 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)