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

Fix tcp stacking and concurrency handling #81

Merged
merged 4 commits into from
Apr 26, 2023
Merged

Conversation

psycofdj
Copy link
Contributor

@psycofdj psycofdj commented Apr 25, 2023

This PR fixes a bug where the connections from the exporter to the API are stacking indefinitely until file description exhaustion.

It also fixes #82 where current requests led to exporter stale.

This bug was introduced in v1.0.0 and is cause by an unclosed request body.

This PR also adds the linter golangci-lint, runs it in a workflow and fixes currently detected flaws.

Finally the PR takes the chance to upgrade dependencies.

@psycofdj psycofdj marked this pull request as draft April 25, 2023 16:13
@psycofdj psycofdj marked this pull request as ready for review April 25, 2023 16:16
@psycofdj psycofdj self-assigned this Apr 25, 2023
Copy link
Contributor

@benjaminguttmann-avtq benjaminguttmann-avtq left a comment

Choose a reason for hiding this comment

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

The linter changes makes it nearly impossible to review :D

@psycofdj psycofdj changed the title WIP: Fix tcp stacking Fix tcp stacking Apr 26, 2023
@psycofdj psycofdj changed the title Fix tcp stacking Fix tcp stacking and concurrency handling Apr 26, 2023
@psycofdj psycofdj merged commit 745b6f5 into master Apr 26, 2023
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.

Concurrent prometheus request contexts sharing a fetcher.Worker causes serious problems
2 participants