You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Edward Capriolo (JIRA)" <ji...@apache.org> on 2010/12/03 22:14:10 UTC

[jira] Created: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

TestRemoteMetaStore fails if machine has multiple IPs
-----------------------------------------------------

                 Key: HIVE-1829
                 URL: https://issues.apache.org/jira/browse/HIVE-1829
             Project: Hive
          Issue Type: Bug
          Components: Metastore
    Affects Versions: 0.6.0
            Reporter: Edward Capriolo


Notice how Running metastore! appears twice.
{noformat}
test:
    [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
    [junit] BR.recoverFromMismatchedToken
    [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
    [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
    [junit] Running metastore!
    [junit] Running metastore!
    [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
    [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
    [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
    [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
    [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
    [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
    [junit] 	at java.lang.Thread.run(Thread.java:619)
    [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
    [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
    [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977703#action_12977703 ] 

Carl Steinbach commented on HIVE-1829:
--------------------------------------

Ashutosh's hunch is right -- this doesn't have anything to do with multiple IPs.

The problem is caused by the setUp method in TestRemoteHiveMetaStore:

{code:java}
  protected void setUp() throws Exception {
    super.setUp();
    if(isServerRunning) {
      return;
    }
    Thread t = new Thread(new RunMS());
    t.start();

    // Wait a little bit for the metastore to start. Should probably have
    // a better way of detecting if the metastore has started?
    Thread.sleep(5000);

    // ...

    client = new HiveMetaStoreClient(hiveConf);
    isThriftClient = true;

    // Now you have the client - run necessary tests.
    isServerRunning = true;
  }
{code}

JUnit calls this method once before running each testcase, and if setUp() throws an
exception it will fail the current test before continuing onto the next one.

On slow machines it can take longer than 5 seconds for the MetaStore server process
to initialize and open a listening socket (RunMS()). When this happens the
HiveMetaStoreClient constructor fails with an exception that causes setUp to exit before
setting isServerRunning to true. JUnit then fails the current testcase and immediately begins initializing
the next testcase, which results in another call to setUp(). Since isServerRunning is still false
we end up starting another MetaStore server thread which will attempt to open a listening
socket on the same port as the first thread, which is what causes the TTransportException
that you see in the log above.

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1829) Fix intermittent failures in TestRemoteMetaStore

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1829:
---------------------------------

    Fix Version/s: 0.7.0
           Status: Patch Available  (was: Open)

Review request: https://reviews.apache.org/r/260/

> Fix intermittent failures in TestRemoteMetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1829.1.patch.txt
>
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach reassigned HIVE-1829:
------------------------------------

    Assignee: Carl Steinbach

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1829) Fix intermittent failures in TestRemoteMetaStore

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1829:
---------------------------------

    Summary: Fix intermittent failures in TestRemoteMetaStore  (was: TestRemoteMetaStore fails if machine has multiple IPs)

> Fix intermittent failures in TestRemoteMetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1829) Fix intermittent failures in TestRemoteMetaStore

Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carl Steinbach updated HIVE-1829:
---------------------------------

    Attachment: HIVE-1829.1.patch.txt

This patch attempts to fix the intermittent failures in TestRemoteHiveMetaStore by instituting a 60 second
wait between consecutive connection attempts in HiveMetaStoreClient. This wait period is configurable
via the new configuration property hive.metastore.client.connect.retry.delay. The patch also defines the
new configuration property hive.metastore.client.socket.timeout that is used to set the timeout value on
Thrift socket wrapped by HiveMetaStoreClient.


> Fix intermittent failures in TestRemoteMetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>         Attachments: HIVE-1829.1.patch.txt
>
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12969891#action_12969891 ] 

Ashutosh Chauhan commented on HIVE-1829:
----------------------------------------

I see similar errors randomly. But, whenever I see doing following always get me past it:

TestRemoteHiveMetaStore.java line number 51:
 -Thread.sleep(5000);
 +Thread.sleep(20000); 

So, not sure if it has to do anything with machine having multiple IPs. I also see "Running metastore!" occurring  2-7 times when there is a random failure.

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) Fix intermittent failures in TestRemoteMetaStore

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979773#action_12979773 ] 

John Sichi commented on HIVE-1829:
----------------------------------

+1.  Will commit when tests pass.


> Fix intermittent failures in TestRemoteMetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1829.1.patch.txt
>
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (HIVE-1829) Fix intermittent failures in TestRemoteMetaStore

Posted by "John Sichi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Sichi updated HIVE-1829:
-----------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]
          Status: Resolved  (was: Patch Available)

Committed.  Thanks Carl!


> Fix intermittent failures in TestRemoteMetaStore
> ------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>             Fix For: 0.7.0
>
>         Attachments: HIVE-1829.1.patch.txt
>
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977770#action_12977770 ] 

Edward Capriolo commented on HIVE-1829:
---------------------------------------

Right I noticed that isServerRunning check is failing. I do not think it is limited to 'slow machines' this fails on server class hardware as well as my laptop with 4GB ram and a quad core. 

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>            Assignee: Carl Steinbach
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Ashutosh Chauhan (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977042#action_12977042 ] 

Ashutosh Chauhan commented on HIVE-1829:
----------------------------------------

This issue can now be seen on latest builds on apache machines as well https://hudson.apache.org/hudson/job/Hive-trunk-h0.20/465/console

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (HIVE-1829) TestRemoteMetaStore fails if machine has multiple IPs

Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12977143#action_12977143 ] 

Edward Capriolo commented on HIVE-1829:
---------------------------------------

Thank you for confirming. It is good to know that I am not going crazy. I have two separate machines running into this issue. I noticed this test "disipeared" from trunk so I assume someone else is having problems with it not testing as well.

> TestRemoteMetaStore fails if machine has multiple IPs
> -----------------------------------------------------
>
>                 Key: HIVE-1829
>                 URL: https://issues.apache.org/jira/browse/HIVE-1829
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>    Affects Versions: 0.6.0
>            Reporter: Edward Capriolo
>
> Notice how Running metastore! appears twice.
> {noformat}
> test:
>     [junit] Running org.apache.hadoop.hive.metastore.TestEmbeddedHiveMetaStore
>     [junit] BR.recoverFromMismatchedToken
>     [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 36.697 sec
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Running metastore!
>     [junit] Running metastore!
>     [junit] org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:29083.
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:98)
>     [junit] 	at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:79)
>     [junit] 	at org.apache.hadoop.hive.metastore.TServerSocketKeepAlive.<init>(TServerSocketKeepAlive.java:34)
>     [junit] 	at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:2189)
>     [junit] 	at org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore$RunMS.run(TestRemoteHiveMetaStore.java:35)
>     [junit] 	at java.lang.Thread.run(Thread.java:619)
>     [junit] Running org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] Test org.apache.hadoop.hive.metastore.TestRemoteHiveMetaStore FAILED (crashed)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.