Repository: hive Updated Branches: refs/heads/master 5d3c5387e -> 985d6f812
HIVE-19515 : TestRpc.testServerPort is consistently failing (Sahil Takiar via Jesus Camacho Rodriguez) Signed-off-by: Ashutosh Chauhan <hashut...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/hive/repo Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/985d6f81 Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/985d6f81 Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/985d6f81 Branch: refs/heads/master Commit: 985d6f8125c363ed28954a684bd86eb622ff9ba1 Parents: 5d3c538 Author: Sahil Takiar <takiar.sa...@gmail.com> Authored: Mon May 14 09:24:53 2018 -0700 Committer: Ashutosh Chauhan <hashut...@apache.org> Committed: Mon May 14 09:24:53 2018 -0700 ---------------------------------------------------------------------- .../test/java/org/apache/hive/spark/client/rpc/TestRpc.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hive/blob/985d6f81/spark-client/src/test/java/org/apache/hive/spark/client/rpc/TestRpc.java ---------------------------------------------------------------------- diff --git a/spark-client/src/test/java/org/apache/hive/spark/client/rpc/TestRpc.java b/spark-client/src/test/java/org/apache/hive/spark/client/rpc/TestRpc.java index fafdff7..5653e4d 100644 --- a/spark-client/src/test/java/org/apache/hive/spark/client/rpc/TestRpc.java +++ b/spark-client/src/test/java/org/apache/hive/spark/client/rpc/TestRpc.java @@ -197,8 +197,10 @@ public class TestRpc { try { autoClose(new RpcServer(config)); assertTrue("Invalid port range should throw an exception", false); // Should not reach here - } catch(IOException e) { - assertEquals("Incorrect RPC server port configuration for HiveServer2", e.getMessage()); + } catch(IllegalArgumentException e) { + assertEquals( + "Malformed configuration value for " + HiveConf.ConfVars.SPARK_RPC_SERVER_PORT.varname, + e.getMessage()); } // Retry logic