jsii-runtime-go have json unmarshall issue when execute in parallel #4218
Labels
bug
This issue is a bug.
closed-for-staleness
needs-reproduction
This issue needs reproduction.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the bug
My golang app use tfcdk which depend on jsii, you can ref the code here.
If I run my app and start multi goroutine to execute the core logic, I can find the jsii.Create not work as expected. I debug the code and find err is generated in the following code:
err in p.responses give the json unmarshall error:
Is this issue a bug or we can't execute jsii.Create in parallel ?
Expected Behavior
jsii.Create can be executed in parallel
Current Behavior
When execute jsii.Create in parallel, will cause json unmarshall issue
Reproduction Steps
Just startup multi goroutines and init and execute cdktf which will invoke jsii.Create in parallel
Possible Solution
No response
Additional Information/Context
No response
SDK version used
v1.81.0
Environment details (OS name and version, etc.)
5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1~bpo11+1 (2022-10-03) x86_64 Linux
The text was updated successfully, but these errors were encountered: