Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs when unable to connect to Loki #23

Open
erichiller opened this issue Sep 3, 2020 · 1 comment
Open

Hangs when unable to connect to Loki #23

erichiller opened this issue Sep 3, 2020 · 1 comment

Comments

@erichiller
Copy link

I only recently encountered this, and it requires a specific set of circumstances it appears.
For quite a few days now my Loki server has been broken, and during all this time the Loki sink was fine, it didn't seem to have any noticeable performance impact and my program would shut down properly.

However yesterday I brought my Loki server up. Then took it down about 5 minutes later. Of course, the Loki sink worked great when the Loki server was up, but it's what happened that when it went down is interesting:
My program still ran without any noticeable performance hit, but this time required a force close to exit.

As far as I can tell this change of behaviour is because previously, the Loki server was down, but it also did not have a DNS record. After bringing it up briefly and then back down, the server had a DNS entry, but the sink was unable to contact it.
This seems to occur at CloseAndFlush().

Versions:

  • Windows 10 1909
  • dotnet core v3.1.7
  • sink v2.2.0
  • serilog v2.9.0

If there's any other info I can provide let me know.

@josephwoodward
Copy link
Owner

Oh interesting, thanks for reporting this one @erichiller, it sounds like it's related to how HttpClient works (as Loki sits over the top of the HttpSink I suspect it's using a long lived HttpClient).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants