Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-1846

RuntimeStats.resetAll does not do its job

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • Component/s: Metrics, Test
    • Labels:
      None
    • Rank:
      1|hzypbj:

      Description

      I noticed through the kafka pack, in test KafkaConsumerFlowletTestBase.testFlowlet, that the call RuntimeStats.resetAll is not actually deleting the metrics, causing the following line to fail:

      Assert.assertEquals(2, sinkMetrics.getProcessed());
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexb Alex Baranau
                Reporter:
                julien Julien Guery
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: