You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Andrew Sherman (JIRA)" <ji...@apache.org> on 2017/06/29 19:31:00 UTC

[jira] [Comment Edited] (HIVE-16991) HiveMetaStoreClient needs a 2-arg constructor for backwards compatibility

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

Andrew Sherman edited comment on HIVE-16991 at 6/29/17 7:30 PM:
----------------------------------------------------------------

The only interesting failure is

{noformat}
Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) ~[?:1.8.0_102]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1471) ~[?:1.8.0_102]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1469) ~[?:1.8.0_102]
	at java.util.AbstractCollection.toArray(AbstractCollection.java:196) ~[?:1.8.0_102]
	at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:290) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.log.PerfLogger.getEndTimes(PerfLogger.java:216) ~[hive-common-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1404) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1360) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:201) ~[hive-service-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
{noformat}

which looks like [HIVE-15936]


was (Author: asherman):
The only interesting failure is

{formatted}
Caused by: java.util.ConcurrentModificationException
	at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) ~[?:1.8.0_102]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1471) ~[?:1.8.0_102]
	at java.util.HashMap$EntryIterator.next(HashMap.java:1469) ~[?:1.8.0_102]
	at java.util.AbstractCollection.toArray(AbstractCollection.java:196) ~[?:1.8.0_102]
	at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:290) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.log.PerfLogger.getEndTimes(PerfLogger.java:216) ~[hive-common-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1404) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1360) ~[hive-exec-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
	at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:201) ~[hive-service-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
{formatted}

which looks like [HIVE-15936]

> HiveMetaStoreClient needs a 2-arg constructor for backwards compatibility
> -------------------------------------------------------------------------
>
>                 Key: HIVE-16991
>                 URL: https://issues.apache.org/jira/browse/HIVE-16991
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Andrew Sherman
>            Assignee: Andrew Sherman
>         Attachments: HIVE-16991.1.patch
>
>
> Some client code that is not easy to change uses a 2-arg constructor on HiveMetaStoreClient.
> It is trivial and safe to add this constructor:
> {noformat}
> public HiveMetaStoreClient(HiveConf conf, HiveMetaHookLoader hookLoader) throws MetaException {
>     this(conf, hookLoader, true);
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)