-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-26622 Update error-prone to 2.10 #3979
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
Long time no see @madrob Seems there is something wrong while building with error prone enabled? |
Yes, the latest version doesn’t work with java 8. Still should fix the other bugs tho |
Maybe we could change the pre commit compile stage to use java11 with --release=8? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great @madrob !
@@ -1102,10 +1102,11 @@ private int calculateHashForKey(Cell cell) { | |||
*/ | |||
@Override | |||
public KeyValue clone() throws CloneNotSupportedException { | |||
super.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wtf was this even doing?
@@ -68,11 +68,6 @@ | |||
<activation> | |||
<activeByDefault>false</activeByDefault> | |||
</activation> | |||
<properties> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this check is run by precommit testing only, I'm fine with bumping this check over to JDK11. Please make sure that test-patch is calling it from the jdk11 incantation instead of the jdk8 incantation.
Doesn't work, #3974 |
Per my read of https://errorprone.info/docs/installation#jdk-8, 2.10.0 is the last version with support for JDK8. |
@madrob I applied this patch but reverted your changes to
Please revert the change to If you want me to take it over, let me know. Thanks for the drive-by 👍 |
Also, the checkstyle violation reported by the build bot is valid, https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3979/2/artifact/yetus-general-check/output/diff-checkstyle-root.txt |
Fair Nick, if you can find the time |
System.arraycopy(this.bytes, this.offset, b, 0, this.length); | ||
KeyValue ret = new KeyValue(b, 0, b.length); | ||
KeyValue ret = (KeyValue) super.clone(); | ||
ret.bytes = new byte[this.length]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe simpler to use Arrays.copyOfRange
here?
Resolved via #4133 |
Thanks for getting us started, @madrob ! |
https://issues.apache.org/jira/browse/HBASE-26622
Tested via
mvn package -DskipTests -PerrorProne
- it probably won't build with Java 8, but it's an opt-in profile so I'm not worried about strict compatibility. Did not run unit tests.There are (still? newly?) hundreds of warnings that y'all can sort through as follow-on work.