[ https://issues.apache.org/jira/browse/HIVE-27733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17769153#comment-17769153 ]
Henri Biestro commented on HIVE-27733: -------------------------------------- Indeed, it is. But the code still encounters the race condition due to sharing the PerfLogger between threads. > Intermittent ConcurrentModificationException in HiveServer2 > ----------------------------------------------------------- > > Key: HIVE-27733 > URL: https://issues.apache.org/jira/browse/HIVE-27733 > Project: Hive > Issue Type: Bug > Components: HiveServer2 > Affects Versions: 4.0.0-beta-1 > Reporter: Henri Biestro > Assignee: Henri Biestro > Priority: Major > > Some tests sporadically fail with a cause that looks like: > {code} > Caused by: java.util.ConcurrentModificationException > at java.util.HashMap$HashIterator.nextNode(HashMap.java:1493) ~[?:?] > at java.util.HashMap$EntryIterator.next(HashMap.java:1526) ~[?:?] > at java.util.HashMap$EntryIterator.next(HashMap.java:1524) ~[?:?] > at java.util.AbstractCollection.toArray(AbstractCollection.java:200) > ~[?:?] > at com.google.common.collect.Iterables.toArray(Iterables.java:285) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:451) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at com.google.common.collect.ImmutableMap.copyOf(ImmutableMap.java:436) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at > org.apache.hadoop.hive.ql.log.PerfLogger.getEndTimes(PerfLogger.java:227) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:629) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:560) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:554) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at > org.apache.hadoop.hive.ql.reexec.ReExecDriver.compileAndRespond(ReExecDriver.java:127) > ~[hive-exec-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > at > org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:200) > ~[hive-service-3.1.3000.7.1.8.0-774.jar:3.1.3000.7.1.8.0-774] > ... 51 more > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)