diff --git a/.github/workflows/build-and-push-images.yml b/.github/workflows/build-and-push-images.yml index 19534787f8b..ae998c9a9ef 100644 --- a/.github/workflows/build-and-push-images.yml +++ b/.github/workflows/build-and-push-images.yml @@ -123,7 +123,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: 11 + java-version: 17 - name: Setup sbt launcher uses: sbt/setup-sbt@508b753e53cb6095967669e0911487d2b9bc9f41 # v1.1.22 @@ -325,7 +325,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: 11 + java-version: 17 - name: Setup sbt launcher uses: sbt/setup-sbt@508b753e53cb6095967669e0911487d2b9bc9f41 # v1.1.22 @@ -405,7 +405,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: 'temurin' - java-version: 11 + java-version: 17 - name: Setup sbt launcher uses: sbt/setup-sbt@508b753e53cb6095967669e0911487d2b9bc9f41 # v1.1.22 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 988c3831397..0a1ffbef18a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -144,7 +144,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04] - java-version: [11] + java-version: [17] runs-on: ${{ matrix.os }} env: JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 @@ -175,7 +175,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: "temurin" - java-version: 11 + java-version: 17 - name: Create Databases # Must run before any sbt compile step: the build's JOOQ source # generators connect to texera_db while compiling. @@ -262,7 +262,7 @@ jobs: strategy: matrix: os: [ubuntu-22.04] - java-version: [11] + java-version: [17] runs-on: ${{ matrix.os }} env: JAVA_OPTS: -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8 @@ -293,7 +293,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: "temurin" - java-version: 11 + java-version: 17 - name: Setup Python for Scala-Python integration tests uses: actions/setup-python@v6 with: @@ -405,7 +405,7 @@ jobs: uses: actions/setup-java@v5 with: distribution: "temurin" - java-version: 11 + java-version: 17 - name: Setup sbt launcher uses: sbt/setup-sbt@508b753e53cb6095967669e0911487d2b9bc9f41 # v1.1.22 - uses: coursier/cache-action@90c37294538be80a558fd665531fcdc2b467b475 # v8.1.0 diff --git a/.jvmopts b/.jvmopts new file mode 100644 index 00000000000..d27383a1a86 --- /dev/null +++ b/.jvmopts @@ -0,0 +1,34 @@ +# 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. +# +# JVM options for sbt's launcher script. Read by `sbt` from the build +# root and applied to sbt's own JVM (which also runs the tests when +# Test / fork := false, the default for this project). +# +# JDK 17+ --add-opens flags required by: +# - Apache Pekko (dispatcher / mailbox / scheduler use sun.misc.Unsafe +# via jdk.internal.misc, plus java.lang for virtual threads and +# sun.nio.ch for Aeron / NIO channels). +# https://github.com/apache/pekko/blob/main/project/JdkOptions.scala +# - Apache Arrow Java off-heap memory (java.nio). +# https://arrow.apache.org/java/main/install.html +# - Ehcache SizeOf reflection used by Tuple.inMemSize (java.lang + +# java.util). Refs discussion #4001. +--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED +--add-opens=java.base/java.lang=ALL-UNNAMED +--add-opens=java.base/sun.nio.ch=ALL-UNNAMED +--add-opens=java.base/java.nio=ALL-UNNAMED +--add-opens=java.base/java.util=ALL-UNNAMED diff --git a/.run/ComputingUnitMaster.run.xml b/.run/ComputingUnitMaster.run.xml index 5ffffb79e88..094518362bc 100644 --- a/.run/ComputingUnitMaster.run.xml +++ b/.run/ComputingUnitMaster.run.xml @@ -21,6 +21,9 @@ under the License.