Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.5.0
-
None
Description
Stopping ReportLineageToAtlas can cause following NPE.
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
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.
Attachments
Issue Links
- links to