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

Metadata should not be directly associated with ProgramRunIds

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0
    • Component/s: Metadata
    • Labels:
      None
    • Release Notes:
      Hide
      Deprecated the aggregation of metadata annotated with all the entities (application, programs, dataset, streams) associated in a run. From this release onwards metadata for program runs behaves like any other entity where a metadata can be directly annotated to it and retrieved from it. For backward compatibility, to achieve the new behavior an additional query parameter 'runAggregation' should be set to false while making the REST call to retrieve metadata of program runs.
      Show
      Deprecated the aggregation of metadata annotated with all the entities (application, programs, dataset, streams) associated in a run. From this release onwards metadata for program runs behaves like any other entity where a metadata can be directly annotated to it and retrieved from it. For backward compatibility, to achieve the new behavior an additional query parameter 'runAggregation' should be set to false while making the REST call to retrieve metadata of program runs.
    • Rank:
      1|i00ecv:

      Description

      In CDAP 5.0 we added support to add metadata to custom entities (non-cdap entities) this allows user to add metadata to any cdap entity too (before CDAP 5.0 it was limited to few CDAP entities). For example now a user can add metadata to ProgramRunId too.

      Before CDAP 5.0 RunIds did not have any metadata associated with them directly although we did supported getMetadata call on RunIds which used to aggregate all the metadata of entities associated with that run (dataset, application etc) and return all of them.

      In CDAP 5.0 and later we will have to support this aggregation behavior but an open product question is whether user should be able to add metadata directly to a run or not. If they can then ideally the retrieve call should return aggregate metadata for all the entities associated with the run including the metadata directly associated with the run itself.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rsinha Rohit Sinha
                Reporter:
                rsinha Rohit Sinha
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: