Peter Bacsko created YUNIKORN-2158:
--------------------------------------

             Summary: Flaky test TestPublisherSendsEvent
                 Key: YUNIKORN-2158
                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2158
             Project: Apache YuniKorn
          Issue Type: Bug
          Components: core - scheduler, test - unit
            Reporter: Peter Bacsko
            Assignee: Peter Bacsko


Unit tests failed in our internal build environment:
{noformat}
2023-11-14T02:11:54.954Z INFO core.rmproxy plugins/plugins.go:46 register 
scheduler plugin: ResourceManagerCallback
2023-11-14T02:11:54.955Z INFO core.rmproxy plugins/plugins.go:50 register 
scheduler plugin: StateDumpPlugin
2023/11/14  --- FAIL: TestPublisherSendsEvent (0.01s)  
event_publisher_test.go:137: EventRecord should not be nil!
{noformat}

Root cause is potentially scheduling/timing, the 2ms sleep time is not enough. 
Replace it with polling.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to