Dávid Paksy created HBASE-29155:
-----------------------------------

             Summary: Upgrade checkstyle to fix website build
                 Key: HBASE-29155
                 URL: https://issues.apache.org/jira/browse/HBASE-29155
             Project: HBase
          Issue Type: Improvement
          Components: build
            Reporter: Dávid Paksy


Right now on master branch the website build fails with the following error:

{noformat}
[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 
/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-6668/yetus-general-check/src/hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java:
 IllegalStateException occurred while parsing file 
/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-6668/yetus-general-check/src/hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java.
 
/home/jenkins/jenkins-home/workspace/Base-PreCommit-GitHub-PR_PR-6668/yetus-general-check/src/hbase-balancer/src/main/java/org/apache/hadoop/hbase/master/balancer/replicas/ReplicaKey.java:43:35:
 expecting RPAREN, found 'other' -> [Help 1]
{noformat}

It seems that checkstyle is not able to parse ReplicaKey.java (because of 
instanceOf pattern match).

Either ReplicaKey.java can be edited to not to use instanceOf pattern matching 
feature or we can upgrade checktyle to newer version which supports this syntax.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to