You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/10/08 10:15:00 UTC
[jira] [Updated] (YARN-11876) Fix AsyncDispatcher crash in TestAppManager
[ https://issues.apache.org/jira/browse/YARN-11876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated YARN-11876:
----------------------------------
Labels: pull-request-available (was: )
> Fix AsyncDispatcher crash in TestAppManager
> -------------------------------------------
>
> Key: YARN-11876
> URL: https://issues.apache.org/jira/browse/YARN-11876
> Project: Hadoop YARN
> Issue Type: Improvement
> Components: resourcemanager
> Affects Versions: 3.5.0
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
>
> h3. *Description*
> After upgrading to {*}JUnit 5{*}, the {{ResourceManager}} module encounters a crash when running unit tests. Specifically, the failure occurs in the test case {{{}TestAppManager#testRMAppSubmitWithQueueChanged{}}}.
> During application submission, the test changes the queue assignment, which triggers a {{SchedulerEvent}} that the {{AsyncDispatcher}} cannot handle.
> As a result, the dispatcher thread throws an exception and terminates, causing the test JVM to exit abnormally with a {{{}SurefireBooterForkException{}}}.
> *Error Details*
> {code:java}
> 2025-10-08 07:56:46,833 ERROR [AsyncDispatcher event handler] event.AsyncDispatcher (MarkerIgnoringBase.java:error(159)) - Error in dispatcher thread
> java.lang.Exception: No handler registered for class org.apache.hadoop.yarn.server.resourcemanager.scheduler.event.SchedulerEventType
> at org.apache.hadoop.yarn.event.AsyncDispatcher.dispatch(AsyncDispatcher.java:277)
> at org.apache.hadoop.yarn.event.AsyncDispatcher$1.run(AsyncDispatcher.java:162)
> at java.lang.Thread.run(Thread.java:750) {code}
> This leads to Maven Surefire reporting a forked VM crash:
> {code:java}
> org.apache.maven.surefire.booter.SurefireBooterForkException: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> Process Exit Code: 255
> Crashed tests: org.apache.hadoop.yarn.server.resourcemanager.TestAppManager {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org