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

PUBDEV-8692: DKV - Remove key-replicas from API #6178

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

michalkurka
Copy link
Contributor

@michalkurka michalkurka commented Apr 25, 2022

This PR cleans up the Key API without any intended (!) changes in functionality.

The current Key API exposed the concept of replication factor and also homing keys to multiple replicas. This is however deprecated and unused.

Changes:

  • replication factor is removed
  • multiple replicas can no longer be specified - users can only specify a single node where to pin the given key (home)

FIY: @sebhrusen I am working on a POC of cluster resiliency that would require changes in the Key distribution function - this is therefore done to simplify the logic, remove dead code and keep only stuff that is actually needed/used.

Key.make(string, systemKey, required=true) doens't make sense because there
is no home node given => remove and keep only Key.make(string, systemKey)
with implicit required=false
Copy link
Contributor

@sebhrusen sebhrusen left a comment

Choose a reason for hiding this comment

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

nice cleanup, thanks @michalkurka

h2o-core/src/main/java/water/Key.java Outdated Show resolved Hide resolved
Copy link
Contributor

@sebhrusen sebhrusen left a comment

Choose a reason for hiding this comment

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

nice!

@michalkurka michalkurka changed the title DKV: Remove key-replicas from API PUBDEV-8692: DKV - Remove key-replicas from API Apr 28, 2022
@michalkurka michalkurka merged commit 85135c8 into master Apr 28, 2022
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.

None yet

2 participants