[ https://issues.apache.org/jira/browse/NIFI-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pierre Villard updated NIFI-4978: --------------------------------- Resolution: Fixed Fix Version/s: 1.6.0 Status: Resolved (was: Patch Available) > Stopping of ReportLineageToAtlas can cause NPE > ---------------------------------------------- > > Key: NIFI-4978 > URL: https://issues.apache.org/jira/browse/NIFI-4978 > Project: Apache NiFi > Issue Type: Bug > Components: Extensions > Affects Versions: 1.5.0 > Reporter: Koji Kawamura > Assignee: Koji Kawamura > Priority: Minor > Fix For: 1.6.0 > > > Stopping ReportLineageToAtlas can cause following NPE. > {code:java} > 2018-02-21 11:34:16,490 INFO [Timer-Driven Process Thread-8] > org.apache.atlas.AtlasBaseClient Client has only one service URL, will use > that for all actions: > http://ctr-e138-1518143905142-29976-01-000002.hwx.site:21000 > 2018-02-21 11:34:16,711 INFO [StandardProcessScheduler Thread-4] > o.a.n.c.s.TimerDrivenSchedulingAgent Stopped scheduling > ReportLineageToAtlas[id=b7bf3781-0161-1000-ffff-ffffafd9ddbd] to run > 2018-02-21 11:34:16,760 INFO [Flow Service Tasks Thread-2] > o.a.nifi.controller.StandardFlowService Saved flow controller > org.apache.nifi.controller.FlowController@2a3e0c4a // Another save pending = > false > 2018-02-21 11:34:17,110 ERROR [Timer-Driven Process Thread-8] > o.a.n.a.reporting.ReportLineageToAtlas > ReportLineageToAtlas[id=b7bf3781-0161-1000-ffff-ffffafd9ddbd] Error running > task ReportLineageToAtlas[id=b7bf3781-0161-1000-ffff-ffffafd9ddbd] due to > java.lang.NullPointerException > 2018-02-21 11:34:17,111 ERROR [Timer-Driven Process Thread-8] > o.a.n.a.reporting.ReportLineageToAtlas > ReportLineageToAtlas[id=b7bf3781-0161-1000-ffff-ffffafd9ddbd] : > java.lang.NullPointerException > java.lang.NullPointerException: null > at > org.apache.nifi.atlas.reporting.ReportLineageToAtlas.onTrigger(ReportLineageToAtlas.java:614) > at > org.apache.nifi.controller.tasks.ReportingTaskWrapper.run(ReportingTaskWrapper.java:41) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) > at > java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecu > {code} > This issue was reported by [~nayakmahesh616] > The NPE happened because nifiAtlasHook is null cleared by @OnUnscheduled > while onTrigger method is still running. That cleanup code should be executed > by @OnStopped. -- This message was sent by Atlassian JIRA (v7.6.3#76005)