Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 21FC510E8D for ; Wed, 18 Sep 2013 18:19:28 +0000 (UTC) Received: (qmail 97928 invoked by uid 500); 18 Sep 2013 18:19:27 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 97897 invoked by uid 500); 18 Sep 2013 18:19:27 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 97889 invoked by uid 99); 18 Sep 2013 18:19:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 18:19:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Sep 2013 18:19:25 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9933C2388B34; Wed, 18 Sep 2013 18:19:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1524515 - in /hive/trunk/hcatalog/core/src/test/java/org/apache: hcatalog/mapreduce/TestHCatPartitionPublish.java hive/hcatalog/mapreduce/TestHCatPartitionPublish.java Date: Wed, 18 Sep 2013 18:19:05 -0000 To: commits@hive.apache.org From: hashutosh@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130918181905.9933C2388B34@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: hashutosh Date: Wed Sep 18 18:19:05 2013 New Revision: 1524515 URL: http://svn.apache.org/r1524515 Log: HIVE-5311 : TestHCatPartitionPublish can fail randomly (Brock Noland via Ashutosh Chauhan) Modified: hive/trunk/hcatalog/core/src/test/java/org/apache/hcatalog/mapreduce/TestHCatPartitionPublish.java hive/trunk/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java Modified: hive/trunk/hcatalog/core/src/test/java/org/apache/hcatalog/mapreduce/TestHCatPartitionPublish.java URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/core/src/test/java/org/apache/hcatalog/mapreduce/TestHCatPartitionPublish.java?rev=1524515&r1=1524514&r2=1524515&view=diff ============================================================================== --- hive/trunk/hcatalog/core/src/test/java/org/apache/hcatalog/mapreduce/TestHCatPartitionPublish.java (original) +++ hive/trunk/hcatalog/core/src/test/java/org/apache/hcatalog/mapreduce/TestHCatPartitionPublish.java Wed Sep 18 18:19:05 2013 @@ -70,7 +70,7 @@ public class TestHCatPartitionPublish { private static FileSystem fs = null; private static MiniMRCluster mrCluster = null; private static boolean isServerRunning = false; - private static final int msPort = 20101; + private static int msPort; private static HiveConf hcatConf; private static HiveMetaStoreClient msc; private static SecurityManager securityManager; @@ -94,6 +94,8 @@ public class TestHCatPartitionPublish { return; } + msPort = MetaStoreUtils.findFreePort(); + MetaStoreUtils.startMetaStore(msPort, ShimLoader .getHadoopThriftAuthBridge()); isServerRunning = true; @@ -106,6 +108,7 @@ public class TestHCatPartitionPublish { + msPort); hcatConf.setIntVar(HiveConf.ConfVars.METASTORETHRIFTCONNECTIONRETRIES, 3); hcatConf.setIntVar(HiveConf.ConfVars.METASTORETHRIFTFAILURERETRIES, 3); + hcatConf.setIntVar(HiveConf.ConfVars.METASTORE_CLIENT_SOCKET_TIMEOUT, 120); hcatConf.set(HiveConf.ConfVars.SEMANTIC_ANALYZER_HOOK.varname, HCatSemanticAnalyzer.class.getName()); hcatConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, ""); Modified: hive/trunk/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java?rev=1524515&r1=1524514&r2=1524515&view=diff ============================================================================== --- hive/trunk/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java (original) +++ hive/trunk/hcatalog/core/src/test/java/org/apache/hive/hcatalog/mapreduce/TestHCatPartitionPublish.java Wed Sep 18 18:19:05 2013 @@ -70,7 +70,7 @@ public class TestHCatPartitionPublish { private static FileSystem fs = null; private static MiniMRCluster mrCluster = null; private static boolean isServerRunning = false; - private static final int msPort = 20101; + private static int msPort; private static HiveConf hcatConf; private static HiveMetaStoreClient msc; private static SecurityManager securityManager; @@ -98,6 +98,8 @@ public class TestHCatPartitionPublish { return; } + msPort = MetaStoreUtils.findFreePort(); + MetaStoreUtils.startMetaStore(msPort, ShimLoader .getHadoopThriftAuthBridge()); Thread.sleep(10000); @@ -111,6 +113,7 @@ public class TestHCatPartitionPublish { + msPort); hcatConf.setIntVar(HiveConf.ConfVars.METASTORETHRIFTCONNECTIONRETRIES, 3); hcatConf.setIntVar(HiveConf.ConfVars.METASTORETHRIFTFAILURERETRIES, 3); + hcatConf.setIntVar(HiveConf.ConfVars.METASTORE_CLIENT_SOCKET_TIMEOUT, 120); hcatConf.set(HiveConf.ConfVars.SEMANTIC_ANALYZER_HOOK.varname, HCatSemanticAnalyzer.class.getName()); hcatConf.set(HiveConf.ConfVars.PREEXECHOOKS.varname, "");