Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-1722

Export API returns success, even if one of the items is not successfully imported

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.8-incubating
    • 0.8.1, 1.0.0
    • atlas-core
    • None

    Description

      Export API returns success, even if one of the items is not successfully imported, which does not look correct.

      Example export info showing both DB's export is successful, where are one of the DB is invalid.

      outputs/atlas-export-info.json
      {
          "clientIpAddress": "172.27.23.198",
          "hostName": "10.200.5.18",
          "metrics": {
              "duration": 1089,
              "entity:hive_column": 12,
              "entity:hive_column_lineage": 4,
              "entity:hive_db": 2,
              "entity:hive_process": 4,
              "entity:hive_storagedesc": 6,
              "entity:hive_table": 6,
              "entity:withExtInfo": 16,
              "typedef:hive_column": 1,
              "typedef:hive_column_lineage": 1,
              "typedef:hive_db": 1,
              "typedef:hive_process": 1,
              "typedef:hive_storagedesc": 1,
              "typedef:hive_table": 1
          },
          "operationStatus": "SUCCESS",
          "request": {
              "itemsToExport": [
                  {
                      "typeName": "hive_db",
                      "uniqueAttributes": {
                          "qualifiedName": "db_dyts4wdsvt@cl1"
                      }
                  },
                  {
                      "typeName": "hive_db",
                      "uniqueAttributes": {
                          "qualifiedName": "123db_jz1ufmnvxu@cl1"
                      }
                  }
              ]
          },
          "timeStamp": 1491368866623,
          "userName": "admin"
      }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            amestry Ashutosh Mestry
            ayubpathan Ayub Pathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment