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

Dataset created through DynamicDatasetContext doesn't have metrics context

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: Datasets
    • Labels:
      None
    • Rank:
      1|hzyvjz:

      Description

      Currently there are two paths for creating Dataset instances in program execution context. One is through the DatasetInstantiator, while the other is through DynamicDatasetContext. However, only datasets created through the DatasetInstantiator get checked whether the dataset implements MeteredDataset, hence get a MetricsContext injected.

      One side note is, if anyone create Dataset instance directly through DatasetFramework, metrics context is also not set.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andreas Andreas Neumann
                Reporter:
                terence Terence Yim
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: