You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Laszlo Gaal (Jira)" <ji...@apache.org> on 2026/07/29 16:43:00 UTC

[jira] [Created] (IMPALA-15230) Docker image builds fail if IMPALA_HOME contains the word "test"

Laszlo Gaal created IMPALA-15230:
------------------------------------

             Summary: Docker image builds fail if IMPALA_HOME contains the word "test"
                 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


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 "test" 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 "test" substring, leading to an abrupt build failure.



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