Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-10672

jacoco instrumentation breaks UDF validation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.4, 3.0.1, 3.1
    • None
    • None
    • Normal

    Description

      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.

      Attachments

        1. cassandra-2.2-10672.txt
          2 kB
          Russ Hatch
        2. cassandra-3.1-10672.txt
          2 kB
          Russ Hatch
        3. trunk-10672.txt
          2 kB
          Russ Hatch

        Activity

          People

            rhatch Russ Hatch
            rhatch Russ Hatch
            Russ Hatch
            Robert Stupp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: