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

Artifact metadata not deleted when artifact is deleted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.3.1
    • Component/s: Metadata
    • Labels:
      None
    • Release Notes:
      Fixed a bug with deleting artifact metadata when artifact was deleted.
    • Rank:
      1|hzy4vz:

      Description

      When you delete an artifact, it's metadata is not deleted.

      There is only one artifact version:

      [albert@cdh-5-4-5541-1000 ~]$ curl xxx:10000/v3/namespaces/default/artifacts/core-plugins?scope=system | python -m json.tool
      [
          {
              "name": "core-plugins",
              "scope": "SYSTEM",
              "version": "1.3.0-SNAPSHOT"
          }
      ]
      

      But a metadata record from a now deleted artifact still exists:

      $ curl 'xxx:10000/v3/namespaces/system/metadata/search?query=table&target=Artifact' | python -m json.tool
      [
          {
              "entityId": {
                  "id": {
                      "name": "core-plugins",
                      "namespace": {
                          "id": "system"
                      },
                      "version": {
                          "fix": 0,
                          "major": 1,
                          "minor": 3,
                          "suffix": "SNAPSHOT",
                          "version": "1.3.0-SNAPSHOT"
                      }
                  },
                  "type": "artifact"
              }
          },
          {
              "entityId": {
                  "id": {
                      "name": "core-plugins",
                      "namespace": {
                          "id": "system"
                      },
                      "version": {
                          "fix": 0,
                          "major": 1,
                          "minor": 2,
                          "version": "1.2.0"
                      }
                  },
                  "type": "artifact"
              }
          }
      ]
      

        Attachments

          Activity

            People

            • Assignee:
              shankar Shankar Selvam
              Reporter:
              ashau Albert Shau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: