edgexfoundry / app-functions-sdk-go

Owner: Applications WG
Apache License 2.0
43 stars 83 forks source link

Got exception sometimes when deploying app-service #1597

Closed cherrycl closed 1 week ago

cherrycl commented 3 months ago

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: app-services ### Is this a regression? No ### Description and Minimal Reproduction [**REQUIRED**] Deploy service by compose file [edgex-compose/docker-compose-no-secty-with-app-sample-arm64.yml](https://raw.githubusercontent.com/edgexfoundry/edgex-compose/main/docker-compose-no-secty-with-app-sample-arm64.yml) ## πŸ”₯ Exception or Error `To reproduce this error may need to repeat deploying service several times` See full logs in attached file [app-sample.log](https://github.com/user-attachments/files/16373848/app-sample.log)

fatal error: concurrent map writes
goroutine 1 [running]:
github.com/edgexfoundry/app-functions-sdk-go/v3/internal/app.setPipelineFunctionParameterNamesLowercase(0x4000168af0?)
        github.com/edgexfoundry/app-functions-sdk-go/v3@v3.2.0-dev.42/internal/app/configupdates.go:195 +0x100
github.com/edgexfoundry/app-functions-sdk-go/v3/internal/app.(*Service).loadConfigurablePipelineTransforms(0x40001c4c00, {0x104bba1, 0x10}, {0x4000565480, 0x5, 0x400052dad0?}, 0x400052db38?, {0xfc1fc0?, 0x400007e460?, 0x4000110020?})
        github.com/edgexfoundry/app-functions-sdk-go/v3@v3.2.0-dev.42/internal/app/service.go:355 +0x5c
github.com/edgexfoundry/app-functions-sdk-go/v3/internal/app.(*Service).LoadConfigurableFunctionPipelines(0x40001c4c00)
        github.com/edgexfoundry/app-functions-sdk-go/v3@v3.2.0-dev.42/internal/app/service.go:311 +0x3ec
main.main()
        github.com/edgexfoundry/app-service-configurable/main.go:40 +0xa4
goroutine 18 [select]:
github.com/edgexfoundry/go-mod-bootstrap/v3/bootstrap.translateInterruptToCancel.func1()
        github.com/edgexfoundry/go-mod-bootstrap/v3@v3.2.0-dev.45/bootstrap/bootstrap.go:68 +0x128
created by github.com/edgexfoundry/go-mod-bootstrap/v3/bootstrap.translateInterruptToCancel in goroutine 1
        github.com/edgexfoundry/go-mod-bootstrap/v3@v3.2.0-dev.45/bootstrap/bootstrap.go:59 +0xb4
goroutine 97 [select]:
github.com/edgexfoundry/go-mod-configuration/v3/internal/pkg/consul.(*consulClient).WatchForChanges.func1()
        github.com/edgexfoundry/go-mod-configuration/v3@v3.2.0-dev.9/internal/pkg/consul/client.go:255 +0x90
created by github.com/edgexfoundry/go-mod-configuration/v3/internal/pkg/consul.(*consulClient).WatchForChanges in goroutine 31
        github.com/edgexfoundry/go-mod-configuration/v3@v3.2.0-dev.9/internal/pkg/consul/client.go:253 +0x294
## 🌍 Your Environment **Deployment Environment:** Ubuntu 2204 / arm64 **EdgeX Version [**REQUIRED**]:** main **Anything else relevant?**