[jira] [Commented] (APEXMALHAR-2508) CacheManager throws exception when the operator receives a shutdown request

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jira] [Commented] (APEXMALHAR-2508) CacheManager throws exception when the operator receives a shutdown request

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/APEXMALHAR-2508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16048742#comment-16048742 ]

Ajay Gupta commented on APEXMALHAR-2508:
----------------------------------------

Exception Stack trace :
java.lang.NullPointerException
\tat com.datatorrent.lib.db.cache.CacheManager.close(CacheManager.java:181)
\tat com.datatorrent.contrib.enrich.AbstractEnricher.deactivate(AbstractEnricher.java:196)
\tat com.datatorrent.stram.engine.Node.deactivate(Node.java:671)
\tat com.datatorrent.stram.engine.StreamingContainer.teardownNode(StreamingContainer.java:1375)



> CacheManager throws exception when the operator receives a shutdown request
> ---------------------------------------------------------------------------
>
>                 Key: APEXMALHAR-2508
>                 URL: https://issues.apache.org/jira/browse/APEXMALHAR-2508
>             Project: Apache Apex Malhar
>          Issue Type: Bug
>            Reporter: Ajay Gupta
>            Assignee: Ajay Gupta
>            Priority: Minor
>
> CacheManager initializes the Timer (refresher) only if refreshTime is not null. However, in deactivate, before cancelling the timer, there is no null check leading to NullPointerException.
> Solution : Add a null check before cancelling the timer.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
Loading...