[
https://issues.apache.org/jira/browse/NIFI-4978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16401646#comment-16401646
]
ASF subversion and git services commented on NIFI-4978:
-------------------------------------------------------
Commit ada069ce426c4c84465425d83fcb8497a14cc4aa in nifi's branch
refs/heads/master from [~ijokarumawak]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=ada069c ]
NIFI-4978: Fixed ReportLineageToAtlas NPE when unscheduled
Signed-off-by: Pierre Villard <[email protected]>
This closes #2548.
> 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)