GS observability event data marshalling triggers race condition #7623
Labels
bug
Something isn't working
c/gateway server
This is related to the Gateway Server
needs/triage
We still need to triage this
Summary
Race condition in GS happens when one of the observability events are registered. This is triggered by data that is marshalled while the event data is accessed in some other part of the code.
Steps to Reproduce
This is hard to reproduce as it's a race condition. In theory, one of the events (I am not aware of which one specifically) should be triggered and the race should happen at one point.
Current Result
A runtime error occurs when a race condition happens.
Expected Result
The race condition should not happen when a GS observability event is registered.
Relevant Logs
URL
No response
Deployment
The Things Stack Cloud
The Things Stack Version
3.33.1
Client Name and Version
Other Information
No response
Proposed Fix
For now, it's really hard to pinpoint the exact place in code that triggers this because the logs don't show too much information. Some more logging should be added to find out the exact event for which the race condition happens.
Contributing
Validation
Code of Conduct
The text was updated successfully, but these errors were encountered: