virajjasani commented on a change in pull request #953:
URL: https://github.com/apache/phoenix/pull/953#discussion_r516581750
##########
File path:
phoenix-core/src/test/java/org/apache/phoenix/schema/MetaDataClientTest.java
##########
@@ -83,4 +85,13 @@ public void testHandleCreateTableMutationCodeWithNewCode()
throws SQLException {
}
}
+ @Test
+ public void testMetaDataProtocolVersion() {
+ 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"),
Review comment:
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?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]