Skip to content

YARN-8470. Fix a NPE in identifyContainersToPreemptOnNode() - #416

Closed
gg7 wants to merge 1 commit into
apache:trunkfrom
gg7:gg7-yarn-8470-fix-npe
Closed

YARN-8470. Fix a NPE in identifyContainersToPreemptOnNode()#416
gg7 wants to merge 1 commit into
apache:trunkfrom
gg7:gg7-yarn-8470-fix-npe

Conversation

@gg7

@gg7gg7 commented Sep 11, 2018

Copy link
Copy Markdown

I encountered this issue while running 3.1.0:

2018-09-10 13:42:39,437 INFO org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler: Container container_1536156801471_0071_01_000055 completed with event FINISHED, but corresponding RMContainer doesn't exist.
2018-09-10 13:42:39,881 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Received RMFatalEvent of type CRITICAL_THREAD_CRASH, caused by a critical thread, FSPreemptionThread, that exited unexpectedly: java.lang.NullPointerException
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptOnNode(FSPreemptionThread.java:207)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptForOneContainer(FSPreemptionThread.java:161)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreempt(FSPreemptionThread.java:121)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.run(FSPreemptionThread.java:81)
2018-09-10 13:42:39,886 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Shutting down the resource manager.
2018-09-10 13:42:39,891 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: a critical thread, FSPreemptionThread, that exited unexpectedly: java.lang.NullPointerException
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptOnNode(FSPreemptionThread.java:207)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptForOneContainer(FSPreemptionThread.java:161)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreempt(FSPreemptionThread.java:121)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.run(FSPreemptionThread.java:81)

I'm guessing a better fix would be to synchronise the removal of applications, but this simple patch should be an improvement IMO.

I encountered this issue while running 3.1.0:
```
2018-09-10 13:42:39,437 INFO org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler: Container container_1536156801471_0071_01_000055 completed with event FINISHED, but corresponding RMContainer doesn't exist.
2018-09-10 13:42:39,881 ERROR org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Received RMFatalEvent of type CRITICAL_THREAD_CRASH, caused by a critical thread, FSPreemptionThread, that exited unexpectedly: java.lang.NullPointerException
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptOnNode(FSPreemptionThread.java:207)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptForOneContainer(FSPreemptionThread.java:161)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreempt(FSPreemptionThread.java:121)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.run(FSPreemptionThread.java:81)
2018-09-10 13:42:39,886 FATAL org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Shutting down the resource manager.
2018-09-10 13:42:39,891 INFO org.apache.hadoop.util.ExitUtil: Exiting with status 1: a critical thread, FSPreemptionThread, that exited unexpectedly: java.lang.NullPointerException
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptOnNode(FSPreemptionThread.java:207)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreemptForOneContainer(FSPreemptionThread.java:161)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.identifyContainersToPreempt(FSPreemptionThread.java:121)
at org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSPreemptionThread.run(FSPreemptionThread.java:81)
```
I'm guessing a better fix would be to synchronise the removal of applications,
but this simple patch should be an improvement IMO.
Signed-off-by: George G <git@gg7.io>
@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec36Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1054trunk passed
+1compile48trunk passed
+1checkstyle36trunk passed
+1mvnsite50trunk passed
+1shadedclient754branch has no errors when building and testing our client artifacts.
+1javadoc29trunk passed
0spotbugs97Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs96trunk passed
_ Patch Compile Tests _
+1mvninstall42the patch passed
+1compile42the patch passed
+1javac42the patch passed
-0checkstyle27hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite45the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient701patch has no errors when building and testing our client artifacts.
+1javadoc29the patch passed
+1findbugs101the patch passed
_ Other Tests _
-1unit4760hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense25The patch does not generate ASF License warnings.
7929
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.rmapp.TestApplicationLifetimeMonitor
SubsystemReport/Notes
DockerClient=18.09.8 Server=18.09.8 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/1/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 63935efd06ab 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / cd967c7
Default Java1.8.0_212
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/1/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/1/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/1/testReport/
Max. process+thread count903 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/1/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec39Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1077trunk passed
+1compile47trunk passed
+1checkstyle30trunk passed
+1mvnsite48trunk passed
+1shadedclient692branch has no errors when building and testing our client artifacts.
+1javadoc28trunk passed
0spotbugs94Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs93trunk passed
_ Patch Compile Tests _
+1mvninstall44the patch passed
+1compile39the patch passed
+1javac39the patch passed
-0checkstyle30hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite45the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient709patch has no errors when building and testing our client artifacts.
+1javadoc28the patch passed
+1findbugs102the patch passed
_ Other Tests _
-1unit4733hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense29The patch does not generate ASF License warnings.
7861
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesNodes
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/2/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 62c6a5e3a6b5 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / c7c7a88
Default Java1.8.0_212
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/2/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/2/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/2/testReport/
Max. process+thread count891 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/2/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec36Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1275trunk passed
+1compile49trunk passed
+1checkstyle33trunk passed
+1mvnsite53trunk passed
+1shadedclient851branch has no errors when building and testing our client artifacts.
+1javadoc30trunk passed
0spotbugs103Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs101trunk passed
_ Patch Compile Tests _
+1mvninstall47the patch passed
+1compile45the patch passed
+1javac45the patch passed
-0checkstyle29hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite49the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient813patch has no errors when building and testing our client artifacts.
+1javadoc30the patch passed
+1findbugs117the patch passed
_ Other Tests _
-1unit4932hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense28The patch does not generate ASF License warnings.
8570
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.scheduler.capacity.TestIncreaseAllocationExpirer
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/3/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux c8a60409235b 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / c2d00c8
Default Java1.8.0_212
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/3/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/3/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/3/testReport/
Max. process+thread count915 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/3/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec47Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1325trunk passed
+1compile47trunk passed
+1checkstyle35trunk passed
+1mvnsite51trunk passed
+1shadedclient734branch has no errors when building and testing our client artifacts.
+1javadoc29trunk passed
0spotbugs104Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs102trunk passed
_ Patch Compile Tests _
+1mvninstall46the patch passed
+1compile42the patch passed
+1javac42the patch passed
-0checkstyle30hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite46the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient742patch has no errors when building and testing our client artifacts.
+1javadoc32the patch passed
+1findbugs122the patch passed
_ Other Tests _
-1unit4945hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense37The patch does not generate ASF License warnings.
8461
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesReservation
hadoop.yarn.server.resourcemanager.TestRMRestart
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/4/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux a19e2a1cadcf 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 00b5a27
Default Java1.8.0_212
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/4/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/4/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/4/testReport/
Max. process+thread count5287 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/4/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec46Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1169trunk passed
+1compile37trunk passed
+1checkstyle31trunk passed
+1mvnsite41trunk passed
+1shadedclient771branch has no errors when building and testing our client artifacts.
+1javadoc28trunk passed
0spotbugs93Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs90trunk passed
_ Patch Compile Tests _
+1mvninstall42the patch passed
+1compile35the patch passed
+1javac35the patch passed
-0checkstyle25hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite36the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient689patch has no errors when building and testing our client artifacts.
+1javadoc26the patch passed
+1findbugs98the patch passed
_ Other Tests _
-1unit4787hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense24The patch does not generate ASF License warnings.
8025
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.scheduler.capacity.TestCapacityScheduler
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/5/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 54c4b342db83 4.4.0-139-generic #165-Ubuntu SMP Wed Oct 24 10:58:50 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / e356e4f
Default Java1.8.0_212
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/5/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/5/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/5/testReport/
Max. process+thread count925 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/5/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec43Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1049trunk passed
+1compile39trunk passed
+1checkstyle29trunk passed
+1mvnsite40trunk passed
+1shadedclient676branch has no errors when building and testing our client artifacts.
+1javadoc26trunk passed
0spotbugs89Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs86trunk passed
_ Patch Compile Tests _
+1mvninstall39the patch passed
+1compile34the patch passed
+1javac34the patch passed
-0checkstyle25hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite38the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient686patch has no errors when building and testing our client artifacts.
+1javadoc24the patch passed
+1findbugs94the patch passed
_ Other Tests _
-1unit4790hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense25The patch does not generate ASF License warnings.
7796
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesAppsModification
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/6/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux fc3be7dcc82e 4.4.0-138-generic #164-Ubuntu SMP Tue Oct 2 17:16:02 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 094d736
Default Java1.8.0_222
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/6/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/6/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/6/testReport/
Max. process+thread count871 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/6/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec78Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1215trunk passed
+1compile42trunk passed
+1checkstyle33trunk passed
+1mvnsite45trunk passed
+1shadedclient881branch has no errors when building and testing our client artifacts.
+1javadoc29trunk passed
0spotbugs112Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs110trunk passed
_ Patch Compile Tests _
+1mvninstall55the patch passed
+1compile46the patch passed
+1javac46the patch passed
-0checkstyle35hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite52the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient898patch has no errors when building and testing our client artifacts.
+1javadoc38the patch passed
+1findbugs118the patch passed
_ Other Tests _
-1unit6116hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense28The patch does not generate ASF License warnings.
9892
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/7/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux e48271684d61 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 69ddb36
Default Java1.8.0_222
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/7/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/7/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/7/testReport/
Max. process+thread count889 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/7/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec74Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1253trunk passed
+1compile42trunk passed
+1checkstyle32trunk passed
+1mvnsite46trunk passed
+1shadedclient840branch has no errors when building and testing our client artifacts.
+1javadoc29trunk passed
0spotbugs100Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs97trunk passed
_ Patch Compile Tests _
+1mvninstall45the patch passed
+1compile39the patch passed
+1javac39the patch passed
-0checkstyle29hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite44the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient870patch has no errors when building and testing our client artifacts.
+1javadoc30the patch passed
+1findbugs100the patch passed
_ Other Tests _
-1unit5280hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense30The patch does not generate ASF License warnings.
8937
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.scheduler.fair.TestFairSchedulerPreemption
hadoop.yarn.server.resourcemanager.reservation.TestCapacityOverTimePolicy
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/8/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 3d2845e96db4 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 3329257
Default Java1.8.0_222
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/8/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/8/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/8/testReport/
Max. process+thread count811 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/8/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

@hadoop-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
0reexec43Docker mode activated.
_ Prechecks _
+1dupname0No case conflicting files found.
+1@author0The patch does not contain any @author tags.
-1test4tests0The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1mvninstall1125trunk passed
+1compile47trunk passed
+1checkstyle40trunk passed
+1mvnsite55trunk passed
+1shadedclient761branch has no errors when building and testing our client artifacts.
+1javadoc34trunk passed
0spotbugs101Used deprecated FindBugs config; considering switching to SpotBugs.
+1findbugs99trunk passed
_ Patch Compile Tests _
+1mvninstall47the patch passed
+1compile41the patch passed
+1javac41the patch passed
-0checkstyle32hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager: The patch generated 2 new + 4 unchanged - 0 fixed = 6 total (was 4)
+1mvnsite46the patch passed
+1whitespace0The patch has no whitespace issues.
+1shadedclient787patch has no errors when building and testing our client artifacts.
+1javadoc30the patch passed
+1findbugs106the patch passed
_ Other Tests _
-1unit4939hadoop-yarn-server-resourcemanager in the patch failed.
+1asflicense29The patch does not generate ASF License warnings.
8319
ReasonTests
Failed junit testshadoop.yarn.server.resourcemanager.TestRMAdminService
SubsystemReport/Notes
DockerClient=19.03.1 Server=19.03.1 base: https://builds.apache.org/job/hadoop-multibranch/job/PR-416/9/artifact/out/Dockerfile
GITHUB PR#416
Optional Testsdupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle
unameLinux 59f04492dc2a 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 toolmaven
Personalitypersonality/hadoop.sh
git revisiontrunk / 915cbc9
Default Java1.8.0_222
checkstylehttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/9/artifact/out/diff-checkstyle-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
unithttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/9/artifact/out/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager.txt
Test Resultshttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/9/testReport/
Max. process+thread count843 (vs. ulimit of 5500)
modulesC: 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 outputhttps://builds.apache.org/job/hadoop-multibranch/job/PR-416/9/console
versionsgit=2.7.4 maven=3.3.9 findbugs=3.1.0-RC1
Powered byApache Yetus 0.10.0 http://yetus.apache.org

This message was automatically generated.

if (app == null) {
// e.g. "INFO org.apache.hadoop.yarn.server.resourcemanager.scheduler.AbstractYarnScheduler: Container container_1536156801471_0071_01_000096 completed with event FINISHED, but corresponding RMContainer doesn't exist."
LOG.warn("app == null, giving up in identifyContainersToPreemptOnNode()");
return null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just continue instead of returning null since we might still be able to find preemptable containers on this node?

shanthoosh added a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
When zookeeper session failures occur in a stream processor, leaves the group(zkClient is closed) and joins the group again.
The last step in that shutdown sequence is zkClient.close(). In some scenarios, it throws the following exception,
org.I0Itec.zkclient.exception.ZkInterruptedException: java.lang.InterruptedException
at org.I0Itec.zkclient.ZkClient.close(ZkClient.java:1278)
at org.apache.samza.zk.ZkControllerImpl.stop(ZkControllerImpl.java:92)
at org.apache.samza.zk.ZkJobCoordinator.stop(ZkJobCoordinator.java:141)
In existing implementation this is not handled, there by killing the stream processor. The following codepath triggers this exception:
`StreamProcessor.stop -> ZkJobCoordinator.stop() -> zkController.stop() -> zkUtils.close`
This exception causes the integration test to fail occasionally and can cause LocalApplicationRunner.waitForFinish method call to block indefinitely(since this callback event success, updates the latch state required for waitForFinish to end).
Author: Shanthoosh Venkataraman <svenkataraman@linkedin.com>
Reviewers: Jagadish <jagadish@apache.org>
Closesapache#416 from shanthoosh/zk_utils_close
@github-actions

Copy link
Copy Markdown
Contributor

We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable.
If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open it and ask for a committer to remove the stale tag and review again.
Thanks all for your contribution.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gg7@hadoop-yetus@sjrand