[
https://issues.apache.org/jira/browse/IMPALA-15230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Smith resolved IMPALA-15230.
------------------------------------
Fix Version/s: Impala 5.0.0
Resolution: Fixed
> Docker image builds fail if IMPALA_HOME contains the word "tests"
> -----------------------------------------------------------------
>
> Key: IMPALA-15230
> URL: https://issues.apache.org/jira/browse/IMPALA-15230
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 5.0.0
> Reporter: Laszlo Gaal
> Assignee: Laszlo Gaal
> Priority: Major
> Fix For: Impala 5.0.0
>
>
> The context builder script, which runs during Impala container image builds,
> contains a meticulous check to verify that all the jars referenced on the
> frontend's CLASSPATH are actually present in the build context, so that they
> can all be written to the image.
> This verification check contains explicit exclusions for test jars (built for
> the Calcite planner and theĀ traditional Impala frontend). Unfortunately this
> test in
> [https://github.com/apache/impala/blob/master/docker/setup_build_context.py#L204]
> and in
> [https://github.com/apache/impala/blob/master/docker/setup_build_context.py#L207]
> is too aggressive: they fail if the "tests" substring is present anywhere in
> the jar's full pathname, not only when it is part of the jar's name itself.
> The check should be constrained to the look at only the jar's own name.
> Found during downstream testing when $IMPALA_HOME's containing directory was
> called "dockerised_test", containing the "tests" substring, leading to an
> abrupt build failure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)