[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938781#comment-16938781 ] Hudson commented on YARN-9857: -- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #17395 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/17395/]) YARN-9857. TestDelegationTokenRenewer throws NPE but tests pass. (ebadger: rev 18a8c2404e10f18e3a0024753d3f8f558fe604af) * (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/security/TestDelegationTokenRenewer.java > TestDelegationTokenRenewer throws NPE but tests pass > > > Key: YARN-9857 > URL: https://issues.apache.org/jira/browse/YARN-9857 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: Ahmed Hussein >Assignee: Ahmed Hussein >Priority: Minor > Fix For: 3.3.0 > > Attachments: YARN-9857.001.patch > > > {{TestDelegationTokenRenewer}} throws some NPEs: > {code:bash} > 2019-09-25 12:51:23,446 WARN [pool-19-thread-2] > security.DelegationTokenRenewer > (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(945)) - Unable to > add the application to the delegation token renewer. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:942) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,446 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=CapacitySchedulerMetrics > Exception in thread "pool-19-thread-2" java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:951) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > 2019-09-25 12:51:23,447 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=MetricsSystem,sub=Stats > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,447 INFO [main] impl.MetricsSystemImpl > (MetricsSystemImpl.java:stop(216)) - ResourceManager metrics system stopped. > {code} > the RMContext dispatcher is not set for the RMMock which results in NPE > accessing the event handler of the dispatcher inside > {{DelegationTokenRenewer}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org
[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938766#comment-16938766 ] Eric Badger commented on YARN-9857: --- Couldn't recreate the failure initially because apparently there are 2 different TestDelegationTokenRenewer for some reason and I was running the wrong one. +1 lgtm. Thanks for the patch, [~ahussein] and for the review [~Jim_Brennan] I've committed this to trunk > TestDelegationTokenRenewer throws NPE but tests pass > > > Key: YARN-9857 > URL: https://issues.apache.org/jira/browse/YARN-9857 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: Ahmed Hussein >Assignee: Ahmed Hussein >Priority: Minor > Attachments: YARN-9857.001.patch > > > {{TestDelegationTokenRenewer}} throws some NPEs: > {code:bash} > 2019-09-25 12:51:23,446 WARN [pool-19-thread-2] > security.DelegationTokenRenewer > (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(945)) - Unable to > add the application to the delegation token renewer. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:942) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,446 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=CapacitySchedulerMetrics > Exception in thread "pool-19-thread-2" java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:951) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > 2019-09-25 12:51:23,447 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=MetricsSystem,sub=Stats > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,447 INFO [main] impl.MetricsSystemImpl > (MetricsSystemImpl.java:stop(216)) - ResourceManager metrics system stopped. > {code} > the RMContext dispatcher is not set for the RMMock which results in NPE > accessing the event handler of the dispatcher inside > {{DelegationTokenRenewer}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org
[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938136#comment-16938136 ] Ahmed Hussein commented on YARN-9857: - [~ebadger] the test does not fail. While I was investigating some intermittent failures with other test case, I noticed NullPointerException in the log files coming from {{TestDelegationTokenRenewer}}. I thought to get rid of NPEs to make the JUnit cleaner and easier to debug. > TestDelegationTokenRenewer throws NPE but tests pass > > > Key: YARN-9857 > URL: https://issues.apache.org/jira/browse/YARN-9857 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: Ahmed Hussein >Assignee: Ahmed Hussein >Priority: Minor > Attachments: YARN-9857.001.patch > > > {{TestDelegationTokenRenewer}} throws some NPEs: > {code:bash} > 2019-09-25 12:51:23,446 WARN [pool-19-thread-2] > security.DelegationTokenRenewer > (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(945)) - Unable to > add the application to the delegation token renewer. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:942) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,446 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=CapacitySchedulerMetrics > Exception in thread "pool-19-thread-2" java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:951) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > 2019-09-25 12:51:23,447 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=MetricsSystem,sub=Stats > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,447 INFO [main] impl.MetricsSystemImpl > (MetricsSystemImpl.java:stop(216)) - ResourceManager metrics system stopped. > {code} > the RMContext dispatcher is not set for the RMMock which results in NPE > accessing the event handler of the dispatcher inside > {{DelegationTokenRenewer}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org
[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938096#comment-16938096 ] Hadoop QA commented on YARN-9857: - | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 0m 35s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | | {color:green}+1{color} | {color:green} test4tests {color} | {color:green} 0m 0s{color} | {color:green} The patch appears to include 1 new or modified test files. {color} | || || || || {color:brown} trunk Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 17m 18s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 45s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 40s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 50s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 13m 43s{color} | {color:green} branch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 22s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 36s{color} | {color:green} trunk passed {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 0m 47s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} compile {color} | {color:green} 0m 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javac {color} | {color:green} 0m 40s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} checkstyle {color} | {color:green} 0m 30s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 43s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 0s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 12m 11s{color} | {color:green} patch has no errors when building and testing our client artifacts. {color} | | {color:green}+1{color} | {color:green} findbugs {color} | {color:green} 1m 15s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} javadoc {color} | {color:green} 0m 32s{color} | {color:green} the patch passed {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} unit {color} | {color:green} 81m 4s{color} | {color:green} hadoop-yarn-server-resourcemanager in the patch passed. {color} | | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 32s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black}134m 0s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | Client=19.03.1 Server=19.03.1 Image:yetus/hadoop:efed4450bf1 | | JIRA Issue | YARN-9857 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/12981363/YARN-9857.001.patch | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle | | uname | Linux bd1a77faf712 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | /testptch/patchprocess/precommit/personality/provided.sh | | git revision | trunk / bdaaa3b | | maven | version: Apache Maven 3.3.9 | | Default Java | 1.8.0_222 | | findbugs | v3.1.0-RC1 | | Test Results | https://builds.apache.org/job/PreCommit-YARN-Build/24837/testReport/ | | Max. process+thread count | 827 (vs. ulimit of 5500) | | modules | C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager | | Console output | https://builds.apache.org/job/PreCommit-YARN-Build/24837/console | | Powered by | Apache Yetus 0.8.0 http://yetus.apache.org | This message was automatically generated. > TestDelegationTokenRenewer throws NPE but tests pass >
[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938062#comment-16938062 ] Eric Badger commented on YARN-9857: --- [~ahussein], what branch does this fail on? I'm running on trunk and I don't see any failures > TestDelegationTokenRenewer throws NPE but tests pass > > > Key: YARN-9857 > URL: https://issues.apache.org/jira/browse/YARN-9857 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: Ahmed Hussein >Assignee: Ahmed Hussein >Priority: Minor > Attachments: YARN-9857.001.patch > > > {{TestDelegationTokenRenewer}} throws some NPEs: > {code:bash} > 2019-09-25 12:51:23,446 WARN [pool-19-thread-2] > security.DelegationTokenRenewer > (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(945)) - Unable to > add the application to the delegation token renewer. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:942) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,446 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=CapacitySchedulerMetrics > Exception in thread "pool-19-thread-2" java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:951) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > 2019-09-25 12:51:23,447 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=MetricsSystem,sub=Stats > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,447 INFO [main] impl.MetricsSystemImpl > (MetricsSystemImpl.java:stop(216)) - ResourceManager metrics system stopped. > {code} > the RMContext dispatcher is not set for the RMMock which results in NPE > accessing the event handler of the dispatcher inside > {{DelegationTokenRenewer}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org
[jira] [Commented] (YARN-9857) TestDelegationTokenRenewer throws NPE but tests pass
[ https://issues.apache.org/jira/browse/YARN-9857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16938023#comment-16938023 ] Jim Brennan commented on YARN-9857: --- +1 This looks good to me. (non-binding) [~ebadger] what do you think? > TestDelegationTokenRenewer throws NPE but tests pass > > > Key: YARN-9857 > URL: https://issues.apache.org/jira/browse/YARN-9857 > Project: Hadoop YARN > Issue Type: Improvement >Reporter: Ahmed Hussein >Assignee: Ahmed Hussein >Priority: Minor > Attachments: YARN-9857.001.patch > > > {{TestDelegationTokenRenewer}} throws some NPEs: > {code:bash} > 2019-09-25 12:51:23,446 WARN [pool-19-thread-2] > security.DelegationTokenRenewer > (DelegationTokenRenewer.java:handleDTRenewerAppSubmitEvent(945)) - Unable to > add the application to the delegation token renewer. > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:942) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,446 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=CapacitySchedulerMetrics > Exception in thread "pool-19-thread-2" java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.handleDTRenewerAppSubmitEvent(DelegationTokenRenewer.java:951) > at > org.apache.hadoop.yarn.server.resourcemanager.security.DelegationTokenRenewer$DelegationTokenRenewerRunnable.run(DelegationTokenRenewer.java:918) > 2019-09-25 12:51:23,447 DEBUG [main] util.MBeans > (MBeans.java:unregister(138)) - Unregistering > Hadoop:service=ResourceManager,name=MetricsSystem,sub=Stats > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2019-09-25 12:51:23,447 INFO [main] impl.MetricsSystemImpl > (MetricsSystemImpl.java:stop(216)) - ResourceManager metrics system stopped. > {code} > the RMContext dispatcher is not set for the RMMock which results in NPE > accessing the event handler of the dispatcher inside > {{DelegationTokenRenewer}}. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org