Skip to content

Fix for memory leak and avoid processing expired responses - #679

Merged
zbjornson merged 2 commits into
prometheus:masterfrom
jdmarshall:shedding
Jul 8, 2025
Merged

zbjornson merged 2 commits into
prometheus:masterfrom
jdmarshall:shedding

Conversation

@jdmarshall

@jdmarshall jdmarshall commented Jul 5, 2025 •

Copy link
Copy Markdown
Contributor

Fix for memory leak and excess computation caused by responses showing
up after the timeout has exceeded.

This introduces some load shedding capability for if the cluster primary cannot keep up with the responses from the cluster.

Make done() unconditionally responsible for calling requests.delete()

This should also handle memory leaks where a cluster member crashes before sending a reply to a collection request.

fixes #677, improves #628

@jdmarshall jdmarshall changed the title Fix for memory leak and excess computation caused by responses showing Fix for memory leak and avoid processing expired responses Jul 5, 2025
up after the timeout has exceeded.

This introduces some load shedding capability for if the cluster primary
cannot keep up with the responses from the cluster.

Make done() unconditionally responsible for calling requests.delete()

This should also handle memory leaks where a cluster member crashes
before sending a reply to a collection request.

@zbjornson zbjornson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find.

@zbjornson

Copy link
Copy Markdown
Contributor

Can you rebase to fix the conflicts please?

@jdmarshall

Copy link
Copy Markdown
Contributor Author

Sure. The real problem here is making everyone enter their own Changelog entries. Everyone puts them on the exact same line guaranteeing a conflict.

@zbjornson
zbjornson merged commit 765fabe into prometheus:master Jul 8, 2025
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.

Cluster mode does not handle load shedding properly if timeouts are exceeded.

2 participants