-
Notifications
You must be signed in to change notification settings - Fork 9.2k
YARN-11438. [Federation] ZookeeperFederationStateStore Support Version. #5537
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
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
| public void storeVersion() throws Exception { | ||
| throw new NotImplementedException("Code is not implemented"); | ||
| byte[] data = ((VersionPBImpl) CURRENT_VERSION_INFO).getProto().toByteArray(); | ||
| boolean isUpdate = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
boolean isUpdate = exists(versionNode);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your help to review the code! I will modify the code.
| ZookeeperFederationStateStore.class.cast(this.getStateStore()); | ||
| zkFederationStateStore.storeVersion(); | ||
| Version version = zkFederationStateStore.loadVersion(); | ||
| assertEquals(version.getMajorVersion(), 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reversed as expected is first?
|
🎊 +1 overall
This message was automatically generated. |
|
@goiri Can you help review this PR again? Thank you very much! |
|
🎊 +1 overall
This message was automatically generated. |
|
@goiri Thank you very much for helping to review the code! |
JIRA: YARN-11438. [Federation] ZookeeperFederationStateStore Support Version.