/[Apache-SVN]
ViewVC logotype

Revision 1229885


Jump to revision: Previous Next
Author: heyongqiang
Date: Wed Jan 11 03:44:17 2012 UTC (12 years, 3 months ago)
Changed paths: 4
Log Message:
HIVE-2706 [jira] StackOverflowError when using custom UDF after adding archive
after adding jars
(Kevin Wilfong via Yongqiang He)

Summary:
https://issues.apache.org/jira/browse/HIVE-2706

The issue was that the current thread's classloader and the classloader in the
conf differed due to the prehook updating only the current thread's classloader
with new jars.  Now, it updates both classloaders, fixing the issue.

When a custom UDF is used in a query after add an archive, such as a zip file,
after adding jars, the XMLEncoder enters an infinite loop when serializing the
map reduce task, as part of sending it to be executed. This results in a stack
overflow error.

Test Plan: Verified it fixed the stack overflow error.

Reviewers: JIRA, heyongqiang, njain

Reviewed By: heyongqiang

CC: heyongqiang

Differential Revision: https://reviews.facebook.net/D1167

Changed paths

Path Details
Directoryhive/trunk/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java modified , text changed
Directoryhive/trunk/ql/src/java/org/apache/hadoop/hive/ql/processors/AddResourceProcessor.java modified , text changed
Directoryhive/trunk/ql/src/java/org/apache/hadoop/hive/ql/processors/DeleteResourceProcessor.java modified , text changed
Directoryhive/trunk/ql/src/java/org/apache/hadoop/hive/ql/session/SessionState.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26