Skip to content

fix(loki.write): Don't hang on shutdown when the send queue is full - #7087

Closed
kgeckhart wants to merge 2 commits into
mainfrom
kgeckhart/loki-write-stop-deadlock
Closed

kgeckhart wants to merge 2 commits into
mainfrom
kgeckhart/loki-write-stop-deadlock

Conversation

@kgeckhart

Copy link
Copy Markdown
Contributor

Brief description of Pull Request

Let loki.write shut down while an endpoint's send queue is full.

Pull Request Details

Stop waited on the goroutine feeding endpoint.enqueue before releasing it, so a full queue deadlocked shutdown and config reloads. Blocked writes now get drain_timeout to find room before they're dropped. Also corrects three arguments on the reference page whose documented defaults and behavior disagreed with the code.

PR Checklist

  • Documentation added
  • Tests updated
  • Config converters updated
  • This pull request was substantially generated with AI assistance (see the GenAI policy)

@github-actions

github-actions Bot commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

💻 Deploy preview deleted (fix(loki.write): Don't hang on shutdown when the send queue is full).

@kgeckhart

Copy link
Copy Markdown
Contributor Author

Replaced by #7091

@kgeckhart kgeckhart closed this Sep 14, 2026
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

Successfully merging this pull request may close these issues.

1 participant