[
https://issues.apache.org/jira/browse/YARN-11546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778661#comment-17778661
]
Steve Loughran commented on YARN-11546:
---------------------------------------
..spotted again. i think it may actually be in the finally() clause which calls
close()...if the reader is null this will hide any underlying exception
triggered trying to read the file
> NPE in TestTimelineAuthFilterForV2
> ----------------------------------
>
> Key: YARN-11546
> URL: https://issues.apache.org/jira/browse/YARN-11546
> Project: Hadoop YARN
> Issue Type: Bug
> Components: test
> Affects Versions: 3.4.0
> Reporter: Steve Loughran
> Priority: Minor
>
> NPE in some yetus tests
> ```
> java.lang.NullPointerException
> at
> org.apache.hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2.readEntityFile(TestTimelineAuthFilterForV2.java:314)
> at
> org.apache.hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2.verifyEntity(TestTimelineAuthFilterForV2.java:287)
> at
> org.apache.hadoop.yarn.server.timelineservice.security.TestTimelineAuthFilterForV2.testPutTimelineEntities(TestTimelineAuthFilterForV2.java:441)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62
> ```
> the actual line is reader.close() in finally; this will trigger an NPE if
> reader == null, i.e. file opening failed.
> Something else has gone wrong, but this NPE is hiding it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]