FrankYang0529 opened a new pull request, #722: URL: https://github.com/apache/yunikorn-core/pull/722
### What is this PR for? We start webservice in a goroutine. https://github.com/apache/yunikorn-core/blob/db70ca6e0ed46eb93362fc1bf48545781146f534/pkg/webservice/webservice.go#L71-L77 Sometime, client sends request before webservice is running (client.GetEvents faster than webservice in ms.Init). https://github.com/apache/yunikorn-core/blob/db70ca6e0ed46eb93362fc1bf48545781146f534/pkg/scheduler/tests/application_tracking_test.go#L45-L50 In this case, we will get `application_tracking_test.go:51: assertion failed: error is not nil: Get "http://localhost:9080/ws/v1/events/batch": dial tcp [::1]:9080: connect: connection refused`. CI reference: https://github.com/apache/yunikorn-core/actions/runs/6920928414/job/18825954111 ### What type of PR is it? * [X] - Bug Fix ### What is the Jira issue? https://issues.apache.org/jira/browse/YUNIKORN-2167 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
