You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2022/08/25 12:14:00 UTC

[jira] [Commented] (HBASE-27328) Enforcer phase EvaluateBeanShell fails occasionally

    [ https://issues.apache.org/jira/browse/HBASE-27328?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17584804#comment-17584804 ] 

Nick Dimiduk commented on HBASE-27328:
--------------------------------------

Despite the logged message being at WARN level, from the reactor summary, it appears that this expression evaluation is the cause of the failure.

{noformat}
[INFO] Apache HBase - Shaded - Client (with Hadoop bundled) FAILURE [  1.074 s]
{noformat}

> Enforcer phase EvaluateBeanShell fails occasionally
> ---------------------------------------------------
>
>                 Key: HBASE-27328
>                 URL: https://issues.apache.org/jira/browse/HBASE-27328
>             Project: HBase
>          Issue Type: Task
>          Components: build
>            Reporter: Nick Dimiduk
>            Priority: Major
>
> For example, from https://ci-hbase.apache.org/job/HBase%20Nightly/job/branch-2.4/412/General_20Nightly_20Build_20Report/
> {noformat}
> [INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ hbase-shaded-client-byo-hadoop ---
> [WARNING] Rule 0: org.apache.maven.plugins.enforcer.EvaluateBeanshell failed with message:
> Couldn't evaluate condition: File license = new File("/home/jenkins/jenkins-home/workspace/HBase_Nightly_branch-2.4/component/hbase-shaded/hbase-shaded-client/target/maven-shared-archive-resources/META-INF/LICENSE");
>                     // Beanshell does not support try-with-resources,
>                     // so we must close this scanner manually
>                     Scanner scanner = new Scanner(license);
>                     while (scanner.hasNextLine()) {
>                       if (scanner.nextLine().startsWith("ERROR:")) {
>                         scanner.close();
>                         return false;
>                       }
>                     }
>                     scanner.close();
>                     return true;
> [INFO] No sources to compile
> {noformat}



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