You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@yunikorn.apache.org by "Peter Bacsko (Jira)" <ji...@apache.org> on 2023/05/19 12:04:00 UTC
[jira] [Created] (YUNIKORN-1754) Data race: TestStoreWithLimitedSize
Peter Bacsko created YUNIKORN-1754:
--------------------------------------
Summary: Data race: TestStoreWithLimitedSize
Key: YUNIKORN-1754
URL: https://issues.apache.org/jira/browse/YUNIKORN-1754
Project: Apache YuniKorn
Issue Type: Bug
Components: core - common, test - unit
Reporter: Peter Bacsko
Data race was detected in a unit test.
{noformat}
==================
WARNING: DATA RACE
Write at 0x00000114c570 by goroutine 48:
github.com/apache/yunikorn-core/pkg/events.TestStoreWithLimitedSize()
/home/bacskop/repos/incubator-yunikorn-core/pkg/events/event_store_test.go:59 +0x46
testing.tRunner()
/snap/go/current/src/testing/testing.go:1576 +0x216
testing.(*T).Run.func1()
/snap/go/current/src/testing/testing.go:1629 +0x47Previous read at 0x00000114c570 by goroutine 42:
github.com/apache/yunikorn-core/pkg/events.(*defaultEventStore).CollectEvents()
/home/bacskop/repos/incubator-yunikorn-core/pkg/events/event_store.go:73 +0x165
github.com/apache/yunikorn-core/pkg/events.(*shimPublisher).StartService.func1()
/home/bacskop/repos/incubator-yunikorn-core/pkg/events/event_publisher.go:68 +0x101Goroutine 48 (running) created at:
testing.(*T).Run()
/snap/go/current/src/testing/testing.go:1629 +0x805
testing.runTests.func1()
/snap/go/current/src/testing/testing.go:2036 +0x8d
testing.tRunner()
/snap/go/current/src/testing/testing.go:1576 +0x216
testing.runTests()
/snap/go/current/src/testing/testing.go:2034 +0x87c
testing.(*M).Run()
/snap/go/current/src/testing/testing.go:1906 +0xb44
main.main()
_testmain.go:102 +0x2fcGoroutine 42 (running) created at:
github.com/apache/yunikorn-core/pkg/events.(*shimPublisher).StartService()
/home/bacskop/repos/incubator-yunikorn-core/pkg/events/event_publisher.go:63 +0xd6
github.com/apache/yunikorn-core/pkg/events.TestNoFillWithoutEventPluginRegistered()
/home/bacskop/repos/incubator-yunikorn-core/pkg/events/event_publisher_test.go:94 +0x295
testing.tRunner()
/snap/go/current/src/testing/testing.go:1576 +0x216
testing.(*T).Run.func1()
/snap/go/current/src/testing/testing.go:1629 +0x47
==================
--- FAIL: TestStoreWithLimitedSize (0.00s)
testing.go:1446: race detected during execution of test {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@yunikorn.apache.org
For additional commands, e-mail: dev-help@yunikorn.apache.org