[
https://issues.apache.org/jira/browse/IMPALA-12331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17750706#comment-17750706
]
ASF subversion and git services commented on IMPALA-12331:
----------------------------------------------------------
Commit ed4642180c9299ba9a99ef20b368bbaca6bc7738 in impala's branch
refs/heads/master from Laszlo Gaal
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=ed4642180 ]
IMPALA-12331: Overwrite previous Maven installation if exists
The Impala system preparation script bin/bootstrap_system.sh may
run multiple times on a system. Jenkins-based precommit runs may
reuse the worker node, or a developer could just run the script
one more time.
During such a run Maven's current version is downloaded and symlinked
into /usr/local/bin. However, the script was not prepared for an already
existing symlink there, and failed if it found one. This is especially
painful for Jenkins-based runs, where such a failure fails the whole
build.
This patch fixes this annoying failure by adding -f to the `ln` command
to disregard any existing symlink.
Change-Id: Ic057103dd770b22dfe27902d435692f54cbb9d3d
Reviewed-on: http://gerrit.cloudera.org:8080/20305
Reviewed-by: Impala Public Jenkins <[email protected]>
Tested-by: Impala Public Jenkins <[email protected]>
> Installing Maven 3.9.2 at the start of a precommit build fails sometimes
> ------------------------------------------------------------------------
>
> Key: IMPALA-12331
> URL: https://issues.apache.org/jira/browse/IMPALA-12331
> Project: IMPALA
> Issue Type: Bug
> Components: Infrastructure
> Affects Versions: Impala 4.3.0
> Reporter: Laszlo Gaal
> Assignee: Laszlo Gaal
> Priority: Critical
>
> The installation of Maven 3.9.2 from {{bin/bootstrap_system.sh}} can
> sometimes fail when the downloaded copy is symlinked into {{/usr/local/bin}}.
> The error is:{code}
> 00:01:00.302 ++ sudo ln -s /usr/local/apache-maven-3.9.2/bin/mvn
> /usr/local/bin
> 00:01:00.305 ln: failed to create symbolic link '/usr/local/bin/mvn': File
> exists{code}
> caused probably by the worker node being reused for a second build.
> {{ln}} should be invoked with the {{-f}} option here to suppress the
> existence check.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]