-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29155 Upgrade checkstyle to fix website build #6727
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-29155 Upgrade checkstyle to fix website build #6727
Conversation
The website build failed with the following error: ``` [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.12.0:site (default-site) on project hbase: Error generating maven-checkstyle-plugin:3.1.0:checkstyle-aggregate report: Failed during checkstyle configuration: Exception was thrown while processing hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java: IllegalStateException occurred while parsing file hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java. hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java:43:35: expecting RPAREN, found 'other' -> [Help 1] ``` Checkstyle is not able to parse ReplicaKey.java (because of instanceOf pattern match syntax). Upgraded the maven-checkstyle-plugin plugin version and the checkstyle version which it uses.
petersomogyi
left a comment
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.
lgtm. Let's see the yetus test results.
|
IIRC we have a rule to not use java11+ grammer on branch-3 as long as we still need to support java 8 on branch-2.x. So let's change the code instead of upgrading checkstyle? We can disucss this again after we make our first 3.x release... |
|
🎊 +1 overall
This message was automatically generated. |
Thanks @Apache9, to be completely honest I did not know about this. Does this applies to master branch as well or is this rule only for branch-3?
OK, I opened another PR here which only changes the code: #6729 BTW do you see any problems upgrading checkstyle anyway? |
Ah sorry, I didn't realize that was a community decision. I directed @rmdmattingly badly. |
|
Can we not ErrorProne this on master? |
|
The master branch is java17+, so there I think we should upgrade checkstyle to a version which is not java 8 only. |
|
🎊 +1 overall
This message was automatically generated. |
|
https://github.com/apache/hbase/pull/6722/files#diff-bfb1a20f8f7f716aaaf4eb55d2450ad337bb2ce157f51f13c135b3eab3175463L43 fixed the issue so I'm closing this PR now. |
The website build failed with the following error:
Checkstyle is not able to parse ReplicaKey.java (because of instanceOf pattern match syntax).
Upgraded the maven-checkstyle-plugin plugin version and the checkstyle version which it uses.