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

SOLR-17537: Manage ZK Compression through Curator #2849

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

Conversation

HoustonPutman
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-17537

Unfortunately, Curator currently requires that users explicitly use (.compress()) in order to enable compression for a zNode. We need to add a feature in Curator that allows for a "CompressionFilter" or something like that.

We will need to wait on a Curator release with that in it in order to merge this.

@HoustonPutman HoustonPutman marked this pull request as draft November 6, 2024 16:26
@dsmiley
Copy link
Contributor

dsmiley commented Nov 7, 2024

Could we call compress() universally and then our compressor chooses to only compress based on our criteria (state.json)? Just an idea off the top of my head; I don't know where compress() is called.

@epugh
Copy link
Contributor

epugh commented Nov 7, 2024

Could we call compress() universally and then our compressor chooses to only compress based on our criteria (state.json)? Just an idea off the top of my head; I don't know where compress() is called.

are you suggesting that it just be a default? And so any data, on it's way in is compressed, and on it's way back out is uncompressed? Interesting idea!

@dsmiley
Copy link
Contributor

dsmiley commented Nov 7, 2024

are you suggesting that it just be a default? And so any data, on it's way in is compressed, and on it's way back out is uncompressed? Interesting idea!

No, but it's confusing because I did say call compress() always. But I also said:

then our compressor chooses to only compress based on our criteria (state.json)?

Thus no effective change from today.

@HoustonPutman
Copy link
Contributor Author

The idea is that with this we can eventually use the Curator recipes, which will require that our interactions with the CuratorFramework and SolrZkClient behave similarly. So yes, we could in the short term, just use .compress() in the solrZkClient calls. But in the future we need the auto-compression to work without .compress() so that the recipes, which don't know to always use .compress(), work in the same way.

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.

3 participants