Skip to content
This repository has been archived by the owner on Jul 18, 2023. It is now read-only.

BlockingCall detected in HttpLineProtocolEmitter.cs #83

Open
Chris8er opened this issue Mar 23, 2020 · 1 comment
Open

BlockingCall detected in HttpLineProtocolEmitter.cs #83

Chris8er opened this issue Mar 23, 2020 · 1 comment
Assignees
Labels

Comments

@Chris8er
Copy link

We're using https://github.com/benaadams/Ben.BlockingDetector to detect blocking calls inside our application. We get the following warning:

Blocking method has been invoked and blocked, this can lead to threadpool starvation. " at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification) at InfluxDB.Collector.Pipeline.Emit.HttpLineProtocolEmitter.Emit(PointData[] points)

Accessing _client.WriteAsync(payload).Result; is not a good practice. Is this an issue and will it be addressed in the near future?

@russorat
Copy link
Contributor

@Chris8er thanks! we will take a look.

@russorat russorat added the bug label Mar 31, 2020
@alespour alespour assigned bednar and unassigned alespour Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants