[
https://issues.apache.org/jira/browse/YUNIKORN-2511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17830053#comment-17830053
]
Yu-Lin Chen commented on YUNIKORN-2511:
---------------------------------------
Another error message before the assert failed:
{code:java}
2024-03-23T08:10:04.623Z ERROR core.rest
webservice/webservice.go:74 HTTP serving error {"error": "listen tcp
:9080: bind: address already in
use"}github.com/apache/yunikorn-core/pkg/webservice.(*WebService).StartWebApp.func1
/home/chenyulin0719/yunikorn/yunikorn-core/pkg/webservice/webservice.go:74
{code}
This issue also happened in my Ubuntu 23.04 env. (But not in my MacOS 13.3)
It succeeds the first time it runs(make test), but fails in subsequent tests.
So I guess the root cause is there are some stale state/connections remain.
After checked the code, I found that the entrypoint_test.go didn't stop
services in ServiceContext:
*
[https://github.com/apache/yunikorn-core/blame/09e5d741b67c397330a6c0d630131a25ae75ef4d/pkg/entrypoint/entrypoint_test.go#L57]
And this issue was fixed after I changed it to:
{code:java}
serviceContext := StartAllServices()
defer serviceContext.StopAll(){code}
Hi [~targetoee] Since you're the first one to discover this issue, would you be
willing to take on this fix?
> Fix flaky TestApplicationHistoryTracking
> ----------------------------------------
>
> Key: YUNIKORN-2511
> URL: https://issues.apache.org/jira/browse/YUNIKORN-2511
> Project: Apache YuniKorn
> Issue Type: Bug
> Components: core - scheduler, test - unit
> Reporter: Chia-Ping Tsai
> Priority: Minor
>
> {code}
> 2024-03-23T08:13:06.036Z INFO core.events
> events/event_publisher.go:69 Stopping shim event publisher
> --- FAIL: TestApplicationHistoryTracking (0.01s)
> application_tracking_test.go:62: assertion failed: 2 (int) != 0 (int):
> number of events generated
> {code}
> The test is not stable on my local.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]