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 nil pointer dereference in ingester client #1730

Merged
merged 1 commit into from
Feb 24, 2020

Conversation

adityacs
Copy link
Collaborator

What this PR does / why we need it:
Fix nil pointer dereference in ingester client.
HealthClient was missing in ingester client setup which caused nil pointer dereference here in client https://github.com/cortexproject/cortex/blob/master/pkg/ingester/client/pool.go#L208

Which issue(s) this PR fixes:
Fixes #1679

@codecov-io
Copy link

Codecov Report

Merging #1730 into master will increase coverage by 0.07%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1730      +/-   ##
==========================================
+ Coverage   64.16%   64.23%   +0.07%     
==========================================
  Files         121      121              
  Lines        9024     9024              
==========================================
+ Hits         5790     5797       +7     
+ Misses       2829     2825       -4     
+ Partials      405      402       -3
Impacted Files Coverage Δ
pkg/promtail/targets/filetarget.go 70.55% <0%> (+1.84%) ⬆️
pkg/promtail/targets/tailer.go 78.16% <0%> (+4.59%) ⬆️

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

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

Successfully merging this pull request may close these issues.

invalid memory address or nil pointer dereference
3 participants