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

Peter Bacsko resolved YUNIKORN-2058.
------------------------------------
    Resolution: Fixed

> Potential data race function EventSystemImpl.reloadConfig
> ---------------------------------------------------------
>
>                 Key: YUNIKORN-2058
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2058
>             Project: Apache YuniKorn
>          Issue Type: Task
>          Components: core - common
>            Reporter: PoAn Yang
>            Assignee: PoAn Yang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.4.0
>
>
> {noformat}
> WARNING: DATA RACE
> Write at 0x00c00012bfc0 by goroutine 131:
>   github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).reloadConfig()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:200 
> +0x46
>   
> github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).StartServiceWithPublisher.func1.1()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:117 
> +0x33
> Previous write at 0x00c00012bfc0 by goroutine 127:
>   
> github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).StartServiceWithPublisher()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:122 
> +0x1b3
>   github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).Restart()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:196 
> +0x35
>   github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).reloadConfig()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:207 
> +0x9c
>   
> github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).StartServiceWithPublisher.func1.1()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:117 
> +0x33
> Goroutine 131 (running) created at:
>   
> github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).StartServiceWithPublisher.func1()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:117 
> +0x8d
>   
> github.com/apache/yunikorn-core/pkg/common/configs.processConfigMapCallbacks()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/common/configs/configs.go:121
>  +0x51
>   runtime.deferreturn()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/runtime/panic.go:477 +0x30
>   
> github.com/apache/yunikorn-core/pkg/webservice.TestGetEventsWhenTrackingDisabled.func1()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/webservice/handlers_test.go:1453
>  +0x6e
>   runtime.deferreturn()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/runtime/panic.go:477 +0x30
>   testing.tRunner()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0x238
>   testing.(*T).Run.func1()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1648 +0x44
> Goroutine 127 (finished) created at:
>   
> github.com/apache/yunikorn-core/pkg/events.(*EventSystemImpl).StartServiceWithPublisher.func1()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/events/event_system.go:117 
> +0x8d
>   
> github.com/apache/yunikorn-core/pkg/common/configs.processConfigMapCallbacks()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/common/configs/configs.go:121
>  +0x51
>   runtime.deferreturn()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/runtime/panic.go:477 +0x30
>   
> github.com/apache/yunikorn-core/pkg/webservice.TestGetEventsWhenTrackingDisabled()
>       
> /home/runner/work/yunikorn-core/yunikorn-core/pkg/webservice/handlers_test.go:1458
>  +0xe4
>   testing.tRunner()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1595 +0x238
>   testing.(*T).Run.func1()
>       /opt/hostedtoolcache/go/1.21.3/x64/src/testing/testing.go:1648 
> +0x44{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