Resolve all com.google.common.io.Files deprecation warnings#12629
Resolve all com.google.common.io.Files deprecation warnings#12629findepi merged 2 commits intotrinodb:masterfrom
Conversation
plugin/trino-cassandra/src/test/java/io/trino/plugin/cassandra/CassandraServer.java
Outdated
Show resolved
Hide resolved
7d9b9b2 to
ab95541
Compare
ebyhr
left a comment
There was a problem hiding this comment.
CI is red.
Error: Failures:
Error: TestShardRecovery.testShardRecoveryBackupChecksumMismatch:212 expected [/tmp/2732748991945657226/data/storage/c1/f1/c1f1441f-561c-497e-8dc3-d6317ab33dba.orc] but found [/tmp/2732748991945657226/backup/c1/f1/c1f1441f-561c-497e-8dc3-d6317ab33dba.orc]
Error: TestShardRecovery.testShardRecoveryExistingFileChecksumMismatch:168 expected [/tmp/2903051290351253377/tmp12177291668773958702.tmp] but found [/tmp/2903051290351253377/backup/1a/8b/1a8bd803-f33a-482f-afc5-267d44aa6b78.orc]
Error: TestShardRecovery.testShardRecoveryExistingFileSizeMismatch:130 expected [/tmp/2569217826565755780/tmp9491014867858533047.tmp] but found [/tmp/2569217826565755780/backup/19/82/19823723-95b6-4ef4-bb72-f72d8276ad7c.orc]
Thanks @ebyhr - I switched |
ab95541 to
a9f47bf
Compare
|
1 failing test suite due to timeout - https://github.com/trinodb/trino/runs/6720470622?check_suite_focus=true - will rerun. |
a9f47bf to
145760c
Compare
|
1 check was cancelled(?) re-running |
145760c to
19ebcf6
Compare
|
https://github.com/trinodb/trino/runs/6727864278?check_suite_focus=true - failed/cancelled due to timeout (54 minutes running tests). Will re-run... |
19ebcf6 to
eaccc2d
Compare
eaccc2d to
548cdaf
Compare
ebyhr
left a comment
There was a problem hiding this comment.
Can we update .mvn/modernizer/violations.xml?
There was a problem hiding this comment.
This change looks unrelated. Could you separate a commit or update the commit body?
There was a problem hiding this comment.
Well spotted, I don't recall removing it (it may have been when I was trying a POC to remove all the warnings, and this got grouped into the com.google ones when I separated the commits).
Ideally we don't have to update anything, we just need to build w/ Maybe as part of a coordinated plan to remove deprecations adding them to violations.xml would make sense. |
There was a problem hiding this comment.
I'd prefer UTF-8 to be explicit.
i know the Files.writeString uses UTF-8 by default, but providing it explicitly also conveys the intent.
548cdaf to
0e3c8ba
Compare
|
(just rebased) |
0e3c8ba to
fa84928
Compare
fa84928 to
b63a3e9
Compare
Description
Google's Guava's
Files#createTempDirandFiles.copyandFiles.writeare all deprecated. This PR removes all usages of these deprecated methods.Refactoring
Removal of deprecated method usages with appropriate replacements. No functional changes should manifest.
Spring-cleaning ;-)
Related issues, pull requests, and links
Documentation
(:white_check_mark:) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
(:white_check_mark:) No release notes entries required.
( ) Release notes entries required with the following suggested text: