You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Hadoop QA (Jira)" <ji...@apache.org> on 2020/01/07 02:25:00 UTC

[jira] [Commented] (PHOENIX-5636) Improve the error message when client connects to server with higher major version

    [ https://issues.apache.org/jira/browse/PHOENIX-5636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009305#comment-17009305 ] 

Hadoop QA commented on PHOENIX-5636:
------------------------------------

{color:red}-1 overall{color}.  Here are the results of testing the latest attachment 
  http://issues.apache.org/jira/secure/attachment/12990055/PHOENIX-5636.master.v1.patch
  against master branch at commit 7bcc9bc89bbe86eedbf8223d101dadb3cf57cc4c.
  ATTACHMENT ID: 12990055

    {color:green}+1 @author{color}.  The patch does not contain any @author tags.

    {color:red}-1 tests included{color}.  The patch doesn't appear to include any new or modified tests.
                        Please justify why no new tests are needed for this patch.
                        Also please list what manual steps were performed to verify this patch.

    {color:green}+1 javac{color}.  The applied patch does not increase the total number of javac compiler warnings.

    {color:green}+1 release audit{color}.  The applied patch does not increase the total number of release audit warnings.

    {color:red}-1 lineLengths{color}.  The patch introduces the following lines longer than 100:
    +        return serverVersion != null && VersionUtil.encodeMaxMinorVersion(MetaDataProtocol.PHOENIX_MAJOR_VERSION) >= serverVersion;
+            throw new SQLExceptionInfo.Builder(SQLExceptionCode.INCOMPATIBLE_CLIENT_SERVER_JAR).setMessage(buf.toString()).build().buildException();
+        return VersionUtil.encodeMinPatchVersion(clientMajorVersion, clientMinorVersion) <= serverVersion; // Client major and minor cannot be ahead of server

     {color:red}-1 core tests{color}.  The patch failed these unit tests:
                       org.apache.phoenix.util.MetaDataUtilTest

Test results: https://builds.apache.org/job/PreCommit-PHOENIX-Build/3239//testReport/
Console output: https://builds.apache.org/job/PreCommit-PHOENIX-Build/3239//console

This message is automatically generated.

> Improve the error message when client connects to server with higher major version
> ----------------------------------------------------------------------------------
>
>                 Key: PHOENIX-5636
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-5636
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0
>            Reporter: Sandeep Guggilam
>            Assignee: Christine Feng
>            Priority: Minor
>              Labels: beginner, newbie
>             Fix For: 4.15.1
>
>         Attachments: PHOENIX-5636.master.v1.patch
>
>
> When a 4.14 client connects to a 5.0 server, it errors out saying " Outdated jars. Newer Phoenix clients can't communicate with older Phoenix servers"
> It should probably error out with "Major version of client is less than that of the server"



--
This message was sent by Atlassian Jira
(v8.3.4#803005)