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

Craig Condit closed YUNIKORN-1447.
----------------------------------

> data race: TestUnReservationAndDeletion
> ---------------------------------------
>
>                 Key: YUNIKORN-1447
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-1447
>             Project: Apache YuniKorn
>          Issue Type: Improvement
>          Components: core - common
>            Reporter: Wilfred Spiegelenburg
>            Assignee: Peter Bacsko
>            Priority: Major
>              Labels: newbie
>
> {code}
> ==================
> WARNING: DATA RACE
> Write at 0x00c026924a50 by goroutine 57:
>   runtime.mapassign_faststr()
>       /usr/local/go/src/runtime/map_faststr.go:203 +0x41c
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).unReserveCount()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:1008
>  +0xf0
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).removeAllocationAsk()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:1419
>  +0x22c
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).processAskReleases()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:822
>  +0xa4
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).handleRMUpdateAllocationEvent()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:757
>  +0xec
>   github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).handleRMEvent()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:111
>  +0x15c
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).StartService.func1()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:55
>  +0x38
> Previous read at 0x00c026924a50 by goroutine 56:
>   runtime.evacuate_fast64()
>       /usr/local/go/src/runtime/map_fast64.go:376 +0x3fc
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).unReserve()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:967
>  +0x88
>   github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).allocate()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:911
>  +0x354
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*PartitionContext).tryAllocate()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/partition.go:832
>  +0x140
>   github.com/apache/yunikorn-core/pkg/scheduler.(*ClusterContext).schedule()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/context.go:137
>  +0x15c
>   
> github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).MultiStepSchedule()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:192
>  +0x68
>   
> github.com/apache/yunikorn-core/pkg/scheduler/tests.TestUnReservationAndDeletion()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/reservation_test.go:439
>  +0x112c
>   testing.tRunner()
>       /usr/local/go/src/testing/testing.go:1439 +0x18c
>   testing.(*T).Run.func1()
>       /usr/local/go/src/testing/testing.go:1486 +0x44
> Goroutine 57 (running) created at:
>   github.com/apache/yunikorn-core/pkg/scheduler.(*Scheduler).StartService()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/scheduler.go:55
>  +0xfc
>   
> github.com/apache/yunikorn-core/pkg/entrypoint.startAllServicesWithParameters()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/entrypoint/entrypoint.go:90
>  +0x550
>   
> github.com/apache/yunikorn-core/pkg/entrypoint.StartAllServicesWithManualScheduler()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/entrypoint/entrypoint.go:61
>  +0x54
>   github.com/apache/yunikorn-core/pkg/scheduler/tests.(*mockScheduler).Init()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/mockscheduler_test.go:55
>  +0x1c4
>   
> github.com/apache/yunikorn-core/pkg/scheduler/tests.TestUnReservationAndDeletion()
>       
> /Users/wilfred/repos/yunikorn/src/github.com/apache/yunikorn-core/pkg/scheduler/tests/reservation_test.go:387
>  +0x9c
>   testing.tRunner()
>       /usr/local/go/src/testing/testing.go:1439 +0x18c
>   testing.(*T).Run.func1()
>       /usr/local/go/src/testing/testing.go:1486 +0x44
> Goroutine 56 (running) created at:
>   testing.(*T).Run()
>       /usr/local/go/src/testing/testing.go:1486 +0x560
>   testing.runTests.func1()
>       /usr/local/go/src/testing/testing.go:1839 +0x94
>   testing.tRunner()
>       /usr/local/go/src/testing/testing.go:1439 +0x18c
>   testing.runTests()
>       /usr/local/go/src/testing/testing.go:1837 +0x6c8
>   testing.(*M).Run()
>       /usr/local/go/src/testing/testing.go:1719 +0x878
>   main.main()
>       _testmain.go:153 +0x3b4
> ==================
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: dev-h...@yunikorn.apache.org

Reply via email to