hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Sherman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-16991) HiveMetaStoreClient needs a 2-arg constructor for backwards compatibility
Date Thu, 29 Jun 2017 19:29:00 GMT

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

Andrew Sherman commented on HIVE-16991:
---------------------------------------

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)

Mime
View raw message