[ 
https://issues.apache.org/jira/browse/YUNIKORN-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Bacsko resolved YUNIKORN-2157.
------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Fixed

> Data race in TestStoreWithLimitedSize
> -------------------------------------
>
>                 Key: YUNIKORN-2157
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2157
>             Project: Apache YuniKorn
>          Issue Type: Bug
>          Components: core - scheduler, test - unit
>            Reporter: Peter Bacsko
>            Assignee: Peter Bacsko
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> We found a race condition in our internal build env:
> {noformat}
>  ==================
>  WARNING: DATA RACE
>  Read at 0x0000013045a0 by goroutine 32:
>    github.com/apache/yunikorn-core/pkg/events.(*EventStore).CollectEvents()
>        /redacted/yunikorn-core/pkg/events/event_store.go:67 +0x1a8
>    
> github.com/apache/yunikorn-core/pkg/events.(*EventPublisher).StartService.func1()
>        /redacted/yunikorn-core/pkg/events/event_publisher.go:55 +0xd1
>  
>  Previous write at 0x0000013045a0 by goroutine 44:
>    github.com/apache/yunikorn-core/pkg/events.TestStoreWithLimitedSize.func1()
>        /redacted/yunikorn-core/pkg/events/event_store_test.go:59 +0x24
>    runtime.deferreturn()
>        /redacted/common/go/src/runtime/panic.go:477 +0x30
>    testing.tRunner()
>        /redacted/common/go/src/testing/testing.go:1595 +0x238
>    testing.(*T).Run.func1()
>        /redacted/common/go/src/testing/testing.go:1648 +0x44
>  
>  Goroutine 32 (running) created at:
>    github.com/apache/yunikorn-core/pkg/events.(*EventPublisher).StartService()
>        /redacted/yunikorn-core/pkg/events/event_publisher.go:50 +0xdc
>    github.com/apache/yunikorn-core/pkg/events.TestPublisherSendsEvent()
>        /redacted/yunikorn-core/pkg/events/event_publisher_test.go:122 +0x224
>    testing.tRunner()
>        /redacted/common/go/src/testing/testing.go:1595 +0x238
>    testing.(*T).Run.func1()
>        /redacted/common/go/src/testing/testing.go:1648 +0x44
>  
>  Goroutine 44 (finished) created at:
>    testing.(*T).Run()
>        /redacted/common/go/src/testing/testing.go:1648 +0x82a
>    testing.runTests.func1()
>        /redacted/common/go/src/testing/testing.go:2054 +0x84
>    testing.tRunner()
>        /redacted/common/go/src/testing/testing.go:1595 +0x238
>    testing.runTests()
>        /redacted/common/go/src/testing/testing.go:2052 +0x896
>    testing.(*M).Run()
>        /redacted/common/go/src/testing/testing.go:1925 +0xb57
>    main.main()
>        _testmain.go:121 +0x2e4
> {noformat}



--
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