You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know Go well enough to know what a proper fix might be, but from what I can tell it appears that the second metrics request enters the Collect function and resets the value of e.up before the first one is received and processed on the other side of the channel.
The text was updated successfully, but these errors were encountered:
Izbitzer
added a commit
to Izbitzer/prometheus-solr-exporter
that referenced
this issue
May 2, 2019
Running the following simple bash script causes the first request to get a value of 0 for the
solr_up
metric:It appears to be a data race, as changing line 228 of exporter.go to the following fixes it:
I don't know Go well enough to know what a proper fix might be, but from what I can tell it appears that the second metrics request enters the Collect function and resets the value of
e.up
before the first one is received and processed on the other side of the channel.The text was updated successfully, but these errors were encountered: