mirror of
https://github.com/apache/impala.git
synced 2025-12-25 02:03:09 -05:00
Building impala-minimal-hive-exec was flaky (sometimes it failed to download Guava 14.0.1), and my guess is that it is related to downloading the same dependency in parallel with ext-data-source. Similarly to the solution in IMPALA-7051, I try to fix it by adding a fictional dependency (ext-data-source -> shaded-deps) to serialize the build. Full Maven dependency graph: fe -> yarn-extras -> ext-data-source -> shaded-deps -> impala-parent The ordering of yarn-extras, ext-data-source, and shaded-deps are arbitrary. Testing: - I never reproduced the original flakiness, so I just hope that it disappears with this change. Change-Id: Ic951ad7313e5ad9add2a00e6a442c6e97f235967 Reviewed-on: http://gerrit.cloudera.org:8080/14372 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
23 lines
1.1 KiB
CMake
23 lines
1.1 KiB
CMake
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# The dependency on shaded-deps is only added to avoid parallel downloads
|
|
# of dependencies. For more details see IMPALA-7051, which was a similar issue.
|
|
add_custom_target(ext-data-source ALL DEPENDS gen-deps impala-parent shaded-deps
|
|
COMMAND $ENV{IMPALA_HOME}/bin/mvn-quiet.sh -B install -DskipTests
|
|
)
|