[ 
https://issues.apache.org/jira/browse/ATLAS-4847?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Priyanshi Shah updated ATLAS-4847:
----------------------------------
    Description: 
Steps to reproduce:

1. Create a hive_table entity and assign a term to it.
2. Perform 1st incremental export of that entity without using changeMarker.
3. Without any modification on that entity perform 2nd consecutive incremental 
export with changeMarker from previous export.

Problem is it throws NullPointerException and export is failed.

  was:
Steps to reproduce:

1. Create a hive_table entity and assign a term to it.
2. Perform 1st incremental export of that entity without using changeMarker.
3. Without any modification on that entity perform 2nd consecutive incremental 
export with changeMarker from previous export.

Problem is it throws NullPointerException and export is failed.

 

Application.log

2024-04-10 17:49:44,148 INFO  - [etp370869802-458 - 
76b2eeb5-22fb-4631-a99a-2567c307152a:] ~ ==> export(user=admin, from=127.0.0.1) 
(ExportService:95)
2024-04-10 17:49:44,219 INFO  - [etp370869802-458 - 
76b2eeb5-22fb-4631-a99a-2567c307152a:] ~ 
export(item=AtlasObjectId\{guid='null', typeName='hive_table', 
uniqueAttributes={qualifiedName:test_db.abc__hive_impala_table_1@cm}}; 
matchType=null, fetchType=INCREMENTAL): found 1 entities: options: 
\{"itemsToExport":[{"typeName":"hive_table","uniqueAttributes":{"qualifiedName":"test_db.abc__hive_impala_table_1@cm"}}],"options":\{"fetchType":"INCREMENTAL","changeMarker":1712751459762},"fetchTypeOptionValue":"INCREMENTAL","skipLineageOptionValue":false,"omitZipResponseForEmptyExport":false,"changeTokenFromOptions":1712751459762}
 (StartEntityFetchByExportRequest:123)
2024-04-10 17:49:44,242 ERROR - [etp370869802-458 - 
76b2eeb5-22fb-4631-a99a-2567c307152a:] ~ Operation failed:  (ExportService:103)
java.lang.{color:#de350b}NullPointerException{color}
        at 
org.apache.atlas.repository.impexp.ExportService$ExportContext.getEntitiesWithModifiedTimestamp(ExportService.java:445)
        at 
org.apache.atlas.repository.impexp.ExportService.addEntity(ExportService.java:332)
        at 
org.apache.atlas.repository.impexp.ExportService.addGlossaryEntities(ExportService.java:299)
        at 
org.apache.atlas.repository.impexp.ExportService.processEntity(ExportService.java:274)


> Export/Import : Atlas export fails and throws NullPointerException.
> -------------------------------------------------------------------
>
>                 Key: ATLAS-4847
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4847
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Priyanshi Shah
>            Assignee: Priyanshi Shah
>            Priority: Major
>         Attachments: ATLAS-4847.patch, NullPointerException_stackTrace.txt
>
>
> Steps to reproduce:
> 1. Create a hive_table entity and assign a term to it.
> 2. Perform 1st incremental export of that entity without using changeMarker.
> 3. Without any modification on that entity perform 2nd consecutive 
> incremental export with changeMarker from previous export.
> Problem is it throws NullPointerException and export is failed.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to