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

Fixed crash in the memcached servers selector when there's only 1 server #1975

Merged
merged 3 commits into from
Jan 9, 2020

Conversation

pracucci
Copy link
Contributor

@pracucci pracucci commented Jan 9, 2020

Fixes #1974

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Verification

Unit tests.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Signed-off-by: Marco Pracucci <marco@pracucci.com>
actualAddr, err := s.PickServer(test.key)

if test.expectedErr != nil {
testutil.NotOk(t, err)
Copy link
Member

Choose a reason for hiding this comment

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

We forgot to check that err is equal to test.expectedErr here :P

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for noticing it! Fixed

Signed-off-by: Marco Pracucci <marco@pracucci.com>
Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

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

Thanks for this quick fix! ❤️ Will release -rc.1 tomorrow 😄

@GiedriusS GiedriusS merged commit 552ffa4 into thanos-io:master Jan 9, 2020
@pracucci pracucci deleted the fix-memcached-server-selector branch January 10, 2020 07:22
@bwplotka
Copy link
Member

Thanks for this quick reaction ❤️

GiedriusS pushed a commit to GiedriusS/thanos that referenced this pull request Jan 10, 2020
…ver (thanos-io#1975)

* Fixed crash in the memcached servers selector when there's only 1 server

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Updated changelog

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Assert expected error in tests

Signed-off-by: Marco Pracucci <marco@pracucci.com>
GiedriusS added a commit that referenced this pull request Jan 10, 2020
* Fixed crash in the memcached servers selector when there's only 1 server (#1975)

* Fixed crash in the memcached servers selector when there's only 1 server

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Updated changelog

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* Assert expected error in tests

Signed-off-by: Marco Pracucci <marco@pracucci.com>

* *: update everything for 0.10.0-rc.1

Update the version strings before the `0.10.0-rc.1` release.

Signed-off-by: Giedrius Statkevičius <giedriuswork@gmail.com>

Co-authored-by: Marco Pracucci <marco@pracucci.com>
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.

store: crashes with new memcached config
3 participants