You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2018/11/01 16:04:07 UTC

[2/7] impala git commit: Detect bad OpenJDK version and install last known good

Detect bad OpenJDK version and install last known good

A recent bug in OpenJDK caused surefire to fail. As a workaround for the
affected version (8u181-b13-1ubuntu0.16.04.1) we download the last known
good version and downgrade it.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1800792

Change-Id: I39b786c37ad836aae5a9fdfee3187303c9536956
Reviewed-on: http://gerrit.cloudera.org:8080/11838
Reviewed-by: Philip Zeyliger <ph...@cloudera.com>
Reviewed-by: Michal Ostrowski <mo...@cloudera.com>
Tested-by: Impala Public Jenkins <im...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/impala/commit/e03f7206
Tree: http://git-wip-us.apache.org/repos/asf/impala/tree/e03f7206
Diff: http://git-wip-us.apache.org/repos/asf/impala/diff/e03f7206

Branch: refs/heads/master
Commit: e03f7206d2c500386694e7d3dfa438c396d8798d
Parents: 8402827
Author: Lars Volker <lv...@cloudera.com>
Authored: Wed Oct 31 10:02:55 2018 -0700
Committer: Impala Public Jenkins <im...@cloudera.com>
Committed: Wed Oct 31 21:52:14 2018 +0000

----------------------------------------------------------------------
 bin/bootstrap_system.sh | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/impala/blob/e03f7206/bin/bootstrap_system.sh
----------------------------------------------------------------------
diff --git a/bin/bootstrap_system.sh b/bin/bootstrap_system.sh
index 0861279..2ab23b1 100755
--- a/bin/bootstrap_system.sh
+++ b/bin/bootstrap_system.sh
@@ -124,6 +124,29 @@ ubuntu apt-get --yes install ccache g++ gcc libffi-dev liblzo2-dev libkrb5-dev \
         ntpdate python-dev python-setuptools postgresql ssh wget vim-common psmisc \
         lsof openjdk-8-jdk openjdk-8-source openjdk-8-dbg apt-utils git
 
+if [[ "$UBUNTU" == true ]]; then
+  # Don't use openjdk-8-jdk 8u181-b13-1ubuntu0.16.04.1 which is known to break the
+  # surefire tests. If we detect that version, we downgrade to the last known good one.
+  # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925 for details.
+  JDK_BAD_VERSION="8u181-b13-1ubuntu0.16.04.1"
+  if dpkg -l openjdk-8-jdk | grep -q $JDK_BAD_VERSION; then
+    JDK_TARGET_VERSION="8u181-b13-0ubuntu0.16.04.1"
+    DEB_DIR=$(mktemp -d)
+    pushd $DEB_DIR
+    wget --no-verbose \
+        "https://launchpadlibrarian.net/380913637/openjdk-8-jdk_8u181-b13-0ubuntu0.16.04.1_amd64.deb" \
+        "https://launchpadlibrarian.net/380913636/openjdk-8-jdk-headless_8u181-b13-0ubuntu0.16.04.1_amd64.deb" \
+        "https://launchpadlibrarian.net/380913641/openjdk-8-jre_8u181-b13-0ubuntu0.16.04.1_amd64.deb" \
+        "https://launchpadlibrarian.net/380913638/openjdk-8-jre-headless_8u181-b13-0ubuntu0.16.04.1_amd64.deb" \
+        "https://launchpadlibrarian.net/380913642/openjdk-8-source_8u181-b13-0ubuntu0.16.04.1_all.deb" \
+        "https://launchpadlibrarian.net/380913633/openjdk-8-dbg_8u181-b13-0ubuntu0.16.04.1_amd64.deb"
+    sudo dpkg -i *.deb
+    popd
+    rm -rf $DEB_DIR
+  fi
+fi
+
+
 redhat sudo yum install -y curl gcc gcc-c++ git krb5-devel krb5-server krb5-workstation \
         libevent-devel libffi-devel make ntp ntpdate openssl-devel cyrus-sasl \
         cyrus-sasl-gssapi cyrus-sasl-devel cyrus-sasl-plain \