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

STORM-2369 [storm-redis] Use binary type for State management #2172

Merged
merged 1 commit into from
Jun 29, 2017

Conversation

HeartSaVioR
Copy link
Contributor

  • introduce new command interface and relevant containers
    • new command interface will contain both binary and string commands in near future
  • change RedisKeyValue to use byte[] for State key and value management instead of String
    • get rid of Base64 encode/decode on RedisEncoder, and also SafeEncoder.encode() in Jedis internal
  • users can select either Redis single server or Redis Cluster by passing JedisPoolConfig or JedisClusterConfig
  • implement binary based KV state iterator
  • Provide a tool to migrate old base64 state to the new binary state
    • migration tool is placed to storm-redis-examples
    • the module is easy to create uber jar hence easy to run the class
  • document how to build and use migration tool

This patch is equivalent to #1950. Please note that there're some other changes for fixing checkstyle. I didn't address all of them, but my patch exceeded the limit so I ended up to fix some in this patch.

@HeartSaVioR
Copy link
Contributor Author

Just update the PR to make equivalent to #1950

* introduce new command interface and relevant containers
  * new command interface will contain both binary and string commands in near future
* change RedisKeyValue to use byte[] for State key and value management instead of String
  * get rid of Base64 encode/decode on RedisEncoder, and also SafeEncoder.encode() in Jedis internal
* users can select either Redis single server or Redis Cluster by passing JedisPoolConfig or JedisClusterConfig
* implement binary based KV state iterator
* Provide a tool to migrate old base64 state to the new binary state
  * migration tool is placed to storm-redis-examples
  * the module is easy to create uber jar hence easy to run the class
* document how to build and use migration tool
* address review comments
  * mostly generalizing via creating new interfaces or base classes
* also fix some checkstyle issues
@HeartSaVioR
Copy link
Contributor Author

Filed an issue for versioning state: https://issues.apache.org/jira/browse/STORM-2605

@arunmahadevan
Copy link
Contributor

+1

@asfgit asfgit merged commit e424a6c into apache:master Jun 29, 2017
@HeartSaVioR HeartSaVioR deleted the STORM-2369 branch June 29, 2017 13:32
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.

3 participants