If user config StreamingStrategy to be a small value and create many AWS SDK v2 subsegments, 2 goroutines would update the Segment at the same time, causes either panic: runtime error: index out of range or fatal error: concurrent map iteration and map write.
Issue #, if available:
If user config StreamingStrategy to be a small value and create many AWS SDK v2 subsegments, 2 goroutines would update the Segment at the same time, causes either
panic: runtime error: index out of range
orfatal error: concurrent map iteration and map write
.The panic has been addressed in PR https://github.com/aws/aws-xray-sdk-go/pull/419 The current PR is for addressing the fatal error.
Description of changes:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.