openGemini / opengemini-client-go

CNCF openGemini Go Client Library
https://opengemini.org/
Apache License 2.0
24 stars 17 forks source link

for select usage error #100

Closed wolfbolin closed 4 months ago

wolfbolin commented 4 months ago

https://github.com/openGemini/opengemini-client-go/blob/0a8ed4306924dcc311acda5517b0c920ea4a00a1/opengemini/write.go#L128-L149

Same error for for select. Donot do function after select. It will be stack when signal income. And the behavior in next loop is unforeseeable

wolfbolin commented 4 months ago

Same error in #87

cyruslo commented 4 months ago

please assign this issue to me

shoothzj commented 4 months ago

closed by #136

wolfbolin commented 4 months ago

This PR #136 doesn't seem to have solved the problem.

shoothzj commented 4 months ago

After merging #136 and #141, I believe the issue where the original context stops but the http request continues to execute has been fixed. We will continue to track the issue with callbacks potentially causing blocking tasks, leading to the Write coroutine being blocked, under #100. Of course, we recommend users avoid performing blocking operations within callbacks.