Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-2005 Remove V2 APIs from CDAP
  3. CDAP-2163

Refactor code to use MetricStore instead of calling DeleteMetricsHandler

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: App Fabric, Metrics
    • Labels:
      None
    • Rank:
      1|hzyrbz:

      Description

      In the course of removing all v2/ APIs, I have moved the MetricsDeleteHandler to v3. There are still two places that make calls to this handler:

      • DeletedProgramHandlerStage
      • ProgramLifecycleHttpHandler

      These can be refactored to use MetricStore directly. Then the DeleteMetricsHandler can be removed. This is better because metrics should not be deleted arbitrarily from outside.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                andreas Andreas Neumann
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: