oakestra / oakestra-net

Networking component of Oakestra
Apache License 2.0
5 stars 7 forks source link

Concurrent map access fatal error #99

Closed giobart closed 1 year ago

giobart commented 1 year ago

Short

Concurrent map access, fatal error!

Proposal

fatal error: concurrent map iteration and map write
goroutine 179 [running]:
NetManager/env.(*Environment).IsServiceDeployed(0xc0001e6f98?, {0xc007058320
, 0x1e})

Happens when startSelfDestructTimeout from MqttJobsUpdates calls if !jut.env.IsServiceDeployed(jut.job) {

Solution

Make env.deployedServices thread safe

Status

Working on it

Checklist