-
Notifications
You must be signed in to change notification settings - Fork 994
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
PHOENIX-6091 Calling MetaDataProtocol.getVersion() on a 4.16 timestam… #953
Conversation
💔 -1 overall
This message was automatically generated. |
Change itself looks good, @richardantal , but could we please have a simple test? |
db061ae
to
d5c40ac
Compare
Thanks @gjacoby126 for the review. |
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.
Left one minor comment, looks good otherwise
long serversTimstamp = System.currentTimeMillis(); | ||
String version = MetaDataProtocol.getVersion(serversTimstamp); | ||
assertEquals("4.16.x", version); // We have to update it after every release | ||
assertEquals(String.format("%d.%d.%s", PHOENIX_MAJOR_VERSION, PHOENIX_MINOR_VERSION, "x"), |
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.
I believe this assert might be better fit for all branches and the one above assertEquals("4.16.x", version);
might not be needed. Thought?
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.
Yeah, that is right!
…p gives version as 4.15.x
d5c40ac
to
2f68a3d
Compare
💔 -1 overall
This message was automatically generated. |
…p gives version as 4.15.x