Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WiP: Run all tests on JDK 17 #10004

Closed
wants to merge 5 commits into from
Closed

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Nov 19, 2021

No description provided.

@cla-bot cla-bot bot added the cla-signed label Nov 19, 2021
@wendigo wendigo force-pushed the serafin/jdk17-tests branch 3 times, most recently from eef0cf5 to 341aedd Compare November 19, 2021 13:51
@wendigo wendigo added tests:all Run all tests tests:hive labels Nov 19, 2021
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from db5ca40 to 71d8f96 Compare November 22, 2021 14:01
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from 65fc26e to 935ba34 Compare December 15, 2021 13:02
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from 935ba34 to 4b4b1b4 Compare December 23, 2021 14:37
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from 4b4b1b4 to cda6617 Compare January 13, 2022 10:23
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from cda6617 to 8cf618d Compare February 23, 2022 11:59
@wendigo wendigo mentioned this pull request Feb 23, 2022
8 tasks
@wendigo wendigo force-pushed the serafin/jdk17-tests branch from 8cf618d to 821a235 Compare February 23, 2022 14:41
@wendigo wendigo requested review from electrum and martint February 23, 2022 15:15
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- This is required for Phoenix tests to work -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is required by the JVM in which Phoenix runs - correct? Trino isn't the one performing these accesses?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually it's used by the phoenix client so these flags will be also required when we switch runtime requirement to 17

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, we'll need to mention this in release notes then when we switch to JDK 17 (by merging this PR)

@wendigo wendigo force-pushed the serafin/jdk17-tests branch 2 times, most recently from 9431392 to a0fe8c8 Compare March 1, 2022 11:46
@electrum
Copy link
Member

electrum commented Mar 14, 2022

Can you rebase/squash and drop the “Speed up resolved function” commit (which seems good but unrelated)?

@@ -407,7 +407,7 @@ public boolean isNull(ResultSet resultSet, int columnIndex)
public long readLong(ResultSet resultSet, int columnIndex)
throws SQLException
{
return resultSet.getObject(columnIndex, LocalDate.class).toEpochDay();
return requireNonNull(resultSet.getObject(columnIndex, LocalDate.class)).toEpochDay();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we’re expecting an NPE with a specific message, let’s change the test, or modify this code to throw a better exception (maybe SQLException with a known error message).

*/
package org.apache.phoenix.shaded.org.apache.zookeeper.client;

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

*/
package org.apache.phoenix.shaded.org.apache.zookeeper.client;

/**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

ZULU_17("/usr/lib/jvm/zulu-17", List.of(
"-Xmx2G",
"-Xmx2304M",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems oddly specific. Add a comment?

@@ -20,9 +20,14 @@
ZULU_11("/usr/lib/jvm/zulu-11", List.of(
"-Xmx2G",
"-XX:+UseG1GC",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove since parallel GC overrides

@@ -1818,6 +1818,27 @@
</build>

<profiles>
<profile>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this to the Phoenix POMs. We don’t want to enable this for everything. It can allow regressions.

@electrum
Copy link
Member

Please re-order the commits so the enable one comes after the fixes — allowing bisect to work.

@wendigo wendigo force-pushed the serafin/jdk17-tests branch from a0fe8c8 to f02c527 Compare March 15, 2022 09:42
@wendigo wendigo changed the title Run all tests on JDK 17 WiP: Run all tests on JDK 17 Mar 15, 2022
@wendigo wendigo closed this Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants