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

Export: Operation Fails if No Options are Specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2, 0.8.3, trunk
    • 0.8.3, 1.2.0, 2.0.0, trunk
    • atlas-core
    • None

    Description

      Pre-requisites

      • Create database (say stocks), tables from beeline. 

      Steps to Duplicate

      Attempt an export using these parameters:

      { "itemsToExport": [ { "typeName": "hive_db", "uniqueAttributes": { "qualifiedName": "stocks@cl1" }} ] }
      

      Expected results: Export should succeed with default options.

      Actual results: Export fails with the following exception:

      2018-10-28 16:03:54,311 ERROR - [pool-2-thread-9 - e63a2ebe-2480-4a60-b5f8-12595effdd9d:hrt_qa:POST/api/atlas/admin/export] ~ Operation failed:  (ExportService:116)
      java.lang.NullPointerException
      	at org.apache.atlas.repository.impexp.AuditsWriter.isReplicationOptionSet(AuditsWriter.java:74)
      	at org.apache.atlas.repository.impexp.AuditsWriter.access$200(AuditsWriter.java:44)
      	at org.apache.atlas.repository.impexp.AuditsWriter$ExportAudits.add(AuditsWriter.java:150)
      	
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: