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

Handle units in some YAML settings (post CASSANDRA-15234) #10

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rzvoncek
Copy link
Collaborator

It seems that at least due to CASSANDRA-15234 the cassandra.yaml file started to feature units (eg MiB) for some settings.

Montecristo is mostly not troubled by this, except for the row_cache_size where we actually parse the value to see if it's bigger than 0.

This PR improves that parsing by removing the MiB string. I could not find a decent(-ly simple) de-humanization library to drop in, so I went for a quick fix like this.

I'm also having issues with the unit tests. I think the Assertions library is not taken into the accunt. I'm commiting a failing unit test, hoping to see the CI here to fail.

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.

1 participant