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

[CALCITE-5748] Upgrade guava from 31.1-jre to 32.0.0-jre #3240

Closed
wants to merge 12 commits into from

Conversation

snuyanzin
Copy link
Contributor

@snuyanzin snuyanzin commented Jun 3, 2023

regarding NPE on Windows it is just a consequence...
the real reason is fixing of CVE-2020-8908 on guava level[1] and as a result Files#createTempDir stopped working on Windows
I raised an issue for that [2]

Files#createTempDir is used inside embedded redis server and that's why it started to fail on Windows.
The most distracting thing is that this redis embedded server from one side looks not supported since 2018 and from the other side is not easily extensible...
For that reason need to reimplement 3 classes in PR to override behavior

[1] google/guava@feb83a1
[2] google/guava#6535

@sonarcloud
Copy link

sonarcloud bot commented Jun 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@snuyanzin snuyanzin changed the title Upgrade guava from 31.1-jre to 32.0.0-jre [CALCITE-5748] Upgrade guava from 31.1-jre to 32.0.0-jre Jun 3, 2023
Comment on lines -164 to -169
@SuppressWarnings("Guava")
@Deprecated // to be removed before 2.0
public <T, R> Closeable addThread(
final com.google.common.base.Function<T, R> handler) {
return addThread((Consumer<T>) handler::apply);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With guava 32 it starts failing on errorprone checks with CheckReturnValue
Since it is already deprecated with a comment what to use instead probably it makes sense to remove it

Comment on lines -1739 to -1746
// CHECKSTYLE: IGNORE 1
/** @deprecated Use {@link #queryContains(Consumer)}. */
@SuppressWarnings("Guava")
@Deprecated // to be removed before 2.0
public final AssertQuery queryContains(
com.google.common.base.Function<List, Void> predicate1) {
return queryContains((Consumer<List>) predicate1::apply);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With guava 32 it starts failing on errorprone checks with CheckReturnValue
Since it is already deprecated with a comment what to use instead probably it makes sense to remove it

@snuyanzin
Copy link
Contributor Author

closing, since the issue was solved in later guava versions

@snuyanzin snuyanzin closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant