Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Conversation

@pracucci
Copy link
Collaborator

@pracucci pracucci commented Aug 7, 2020

Today I learned the hard way that std.setMember() requires the array to be sorted, while std.member() doesn't. So far it worked by coincidence, because we were defining storage_engine: ['chunks', 'tsdb'] but after renaming tsdb to blocks it stopped working as expected. I replaced the usage of std.setMember() with std.member().

To use the new function, I've upgraded the jsonnet requirement from 0.14.0 to 0.15.0.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci requested a review from a team as a code owner August 7, 2020 09:13
@pracucci pracucci requested a review from gouthamve August 7, 2020 09:13
@pracucci
Copy link
Collaborator Author

pracucci commented Aug 7, 2020

Investigating why the CI failed, while this change worked when I manually tried it.

@pracucci
Copy link
Collaborator Author

pracucci commented Aug 7, 2020

std.member() is available since version 0.15.0.

Signed-off-by: Marco Pracucci <marco@pracucci.com>
@pracucci pracucci merged commit ef15b95 into master Aug 7, 2020
@pracucci pracucci deleted the fix-setmember-usage branch August 7, 2020 09:32
simonswine pushed a commit to grafana/mimir that referenced this pull request Oct 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants