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

ASF subversion and git services commented on IMPALA-12564:
----------------------------------------------------------

Commit 408c119f7da022e2f6de2df2b5af4546eefdb5bc in impala's branch 
refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=408c119f7 ]

IMPALA-12564: Prevent Hive loading libfesupport.so in the minicluster during 
TSAN runs

During TSAN runs all Impala binaries (including libfesupport.so) are
built with TSAN options, which include a reference to the external
symbol __tsan_init. This causes a problem for libfesupport.so when it is
loaded into Hive during minicluster startup, because the Java VM running
Hive's code cannot supply this symbol (the stock JVM is obviously not
built with TSAN).

Unfortunately this symbol resolution failure causes Hive's JVM simply to
abort on Red Hat 8 (or later) and on Ubuntu 20.04 (or later).
On earlier versions of the same platforms the JVM turned the same
failure into an UnsatisfiedLinkError exception, which is actually
handled by Hive.

This patch prevents libfesupport.so from being loaded into Hive for TSAN
runs so that the minicluster can actually be started. This is achieved
by not adding the directory containing libfesupport.so to
JAVA_LIBRARY_PATH, preventing the JVM from finding it.

Change-Id: Ie030d9876c297d6e9dae80eba37e525ee2bccb20
Reviewed-on: http://gerrit.cloudera.org:8080/21191
Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com>


> TSAN test run fails to start Hive Server on Ubuntu 22.04
> --------------------------------------------------------
>
>                 Key: IMPALA-12564
>                 URL: https://issues.apache.org/jira/browse/IMPALA-12564
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Michael Smith
>            Assignee: Laszlo Gaal
>            Priority: Major
>
> Hive Server startup hangs during ARM TSAN test runs. Logs were not 
> particularly illuminating.
> hive-server2.out shows
> {code}
> /usr/lib/jvm/java-8-openjdk-amd64/bin/java: symbol lookup error: 
> /home/michael/Impala/be/build/debug/service/libfesupport.so: undefined 
> symbol: __tsan_init
> {code}
> Can work around it locally by commenting out 
> https://github.com/apache/impala/blob/4.3.0/testdata/bin/run-hive-server.sh#L140-L146.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org
For additional commands, e-mail: issues-all-h...@impala.apache.org

Reply via email to