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

Add nil check for tagKeyValueEntry.setIDs() #13053

Merged
merged 1 commit into from
Apr 4, 2019
Merged

Conversation

benbjohnson
Copy link
Contributor

Previously it was possible to set IDs on a nil entry which would in turn cause a panic. If this panic was recovered by the server then it would result in a mutex in the inmem index staying locked indefinitely.

Related: #13010

Briefly describe your proposed changes:

  • Rebased/mergeable
  • Tests pass

Previously it was possible to set IDs on a `nil` entry which would
in turn cause a panic. If this panic was recovered by the server
then it would result in a mutex in the `inmem` index staying locked
indefinitely.
Copy link
Contributor

@e-dard e-dard left a comment

Choose a reason for hiding this comment

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

LGTM 👍

tsdb/index/inmem/meta_test.go Show resolved Hide resolved
@benbjohnson benbjohnson merged commit 8f54d5b into 1.8 Apr 4, 2019
@benbjohnson benbjohnson deleted the bj-nil-check-setIDs-1.8 branch April 4, 2019 15:18
@bdbusch
Copy link

bdbusch commented Apr 6, 2019

We're pretty much locked up in our PROD environment - we have the 1.7.3 RPM - can we somehow undo the upgrade to 1.7.5 and replace with 1.7.3 until this fix is published?

@benbjohnson
Copy link
Contributor Author

Yes, you should be able to uninstall 1.7.5 and reinstall 1.7.3 (or 1.7.4).

@bdbusch
Copy link

bdbusch commented Apr 7, 2019

We downgraded to 1.7.3 and it's working so far. Thanks!

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

Successfully merging this pull request may close these issues.

None yet

3 participants