hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <>
Subject [jira] [Created] (HIVE-15936) ConcurrentModificationException in ATSHook
Date Thu, 16 Feb 2017 02:11:41 GMT
Daniel Dai created HIVE-15936:

             Summary: ConcurrentModificationException in ATSHook
                 Key: HIVE-15936
             Project: Hive
          Issue Type: Bug
            Reporter: Daniel Dai
            Assignee: Daniel Dai
         Attachments: HIVE-15936.1.patch

See ATSHook error:

	at java.util.HashMap$HashIterator.nextNode( ~[?:1.8.0_112]
	at java.util.HashMap$ ~[?:1.8.0_112]
	at java.util.HashMap$ ~[?:1.8.0_112]
	at java.util.AbstractCollection.toArray( ~[?:1.8.0_112]
	at ~[guava-14.0.1.jar:?]
	at org.apache.hadoop.hive.ql.log.PerfLogger.getEndTimes( ~[hive-common-]
	at org.apache.hadoop.hive.ql.hooks.ATSHook.createPostHookEvent( ~[hive-exec-]
	at org.apache.hadoop.hive.ql.hooks.ATSHook$ [hive-exec-]
	at java.util.concurrent.Executors$ [?:1.8.0_112]
	at [?:1.8.0_112]
	at java.util.concurrent.ThreadPoolExecutor.runWorker( [?:1.8.0_112]
	at java.util.concurrent.ThreadPoolExecutor$ [?:1.8.0_112]
	at [?:1.8.0_112]

According to [~jdere], ATSHook is currently accessing the PerfLogger on a separate thread,
which means the main query thread can potentially write to the PerfLogger at the same time.
The ATSHook should access the PerfLogger on the main query thread, before it sends the execution
to the ATS Logger thread.

This message was sent by Atlassian JIRA

View raw message