Skip to content

Commit

Permalink
[STORM-3939] Remove gitact build for JDK 8, set class format to JDK11…
Browse files Browse the repository at this point in the history
…, and allow introspection as needed.
  • Loading branch information
bipinprasad committed Aug 2, 2023
1 parent 516d383 commit 094ab66
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 59 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
java: [ 8, 11, 17 ]
java: [ 11, 17 ]
module: [ Client, Server, Core, External, Check-Updated-License-Files, Integration-Test ]
experimental: [false]
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions external/storm-blobstore-migration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ limitations under the License.
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
Expand Down
30 changes: 1 addition & 29 deletions external/storm-cassandra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,9 @@
<guava.version>16.0.1</guava.version>
<commons-lang3.version>3.3</commons-lang3.version>
<cassandra.driver.core.version>3.1.2</cassandra.driver.core.version>
<storm-cassandra.test.introspection.argLine></storm-cassandra.test.introspection.argLine>
<storm-cassandra.test.introspection.argLine>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED</storm-cassandra.test.introspection.argLine>
</properties>

<profiles>
<profile>
<!-- if jdk17 or higher then allow introspection on specific packages -->
<id>java-17-or-higher</id>
<activation>
<jdk>[17,)</jdk> <!-- This activates the profile for JDK 17 and higher -->
</activation>
<properties>
<!-- note that java.lang reflection is currently used in storm-server test -->
<storm-cassandra.test.introspection.argLine>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED</storm-cassandra.test.introspection.argLine>
</properties>
</profile>
<profile>
<id>java-11-to-below-17</id>
<activation>
<jdk>[11,17)</jdk>
</activation>
<properties>
<storm-cassandra.test.introspection.argLine>--illegal-access=warn</storm-cassandra.test.introspection.argLine>
</properties>
</profile>
</profiles>

<developers>
<developer>
<id>fhuss</id>
Expand Down Expand Up @@ -187,11 +164,6 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- remove this when Cassandra does not use reflection in
at org.apache.cassandra.utils.FBUtilities.classForName(FBUtilities.java:454)
that is called indirectly
by org.apache.storm.cassandra.testtools.EmbeddedCassandraResource.getDataDirs(EmbeddedCassandraResource.java:138)
-->
<argLine>${storm-cassandra.test.introspection.argLine} -Xmx3g -XX:+HeapDumpOnOutOfMemoryError</argLine>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
<excludedGroups>IntegrationTest | ${java.unit.test.exclude.groups}</excludedGroups>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
</issueManagement>

<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>${maven.compiler.target}</maven.compiler.source>
<maven.javadoc.failOnError>false</maven.javadoc.failOnError>
<maven.javadoc.failOnWarnings>false</maven.javadoc.failOnWarnings>
Expand Down Expand Up @@ -1258,7 +1258,7 @@
<artifactId>maven-pmd-plugin</artifactId>
<version>3.16.0</version>
<configuration>
<targetJdk>1.8</targetJdk>
<targetJdk>${maven.compiler.target}</targetJdk>
<rulesets>
<ruleset>storm/pmd-ruleset.xml</ruleset>
</rulesets>
Expand Down Expand Up @@ -1431,8 +1431,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>
<plugin>
Expand Down
24 changes: 1 addition & 23 deletions storm-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,9 @@
<artifactId>storm-server</artifactId>

<properties>
<storm-server.test.introspection.argLine></storm-server.test.introspection.argLine>
<storm-server.test.introspection.argLine>--add-opens java.base/java.lang=ALL-UNNAMED</storm-server.test.introspection.argLine>
</properties>

<profiles>
<profile>
<id>java-17-or-higher</id>
<activation>
<jdk>[17,)</jdk>
</activation>
<properties>
<storm-server.test.introspection.argLine>--add-opens java.base/java.lang=ALL-UNNAMED</storm-server.test.introspection.argLine>
</properties>
</profile>
<profile>
<id>java-11-to-below-17</id>
<activation>
<jdk>[11,17)</jdk>
</activation>
<properties>
<storm-server.test.introspection.argLine>--illegal-access=warn</storm-server.test.introspection.argLine>
</properties>
</profile>
</profiles>

<dependencies>
<dependency>
<groupId>org.apache.storm</groupId>
Expand Down Expand Up @@ -194,7 +173,6 @@
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<forkCount>1</forkCount>
<!-- remove this when ServerUtilsTest.getPidOfPosixProcess() returns p.pid() as allowed in JDK11 and above -->
<argLine>${storm-server.test.introspection.argLine} -Xmx3g -XX:+HeapDumpOnOutOfMemoryError</argLine>
</configuration>
</plugin>
Expand Down

0 comments on commit 094ab66

Please sign in to comment.