[
https://issues.apache.org/jira/browse/HADOOP-19717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18031207#comment-18031207
]
Steve Loughran commented on HADOOP-19717:
-----------------------------------------
this is complicating the new thirdparty release FWIW. this should all be using
the unshaded javax. Nullable/nonnull. And the hadoop-thirdparty release needs
to address this stuff getting left out so 1.5.0 can be a drop-in replacement
for 1.4.0
{code}
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile)
on project hadoop-tos: Compilation failure: Compilation failure:
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-cloud-storage-project/hadoop-tos/src/main/java/org/apache/hadoop/fs/tosfs/util/Iterables.java:[22,79]
package
org.apache.hadoop.thirdparty.org.checkerframework.checker.nullness.qual does
not exist
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-cloud-storage-project/hadoop-tos/src/main/java/org/apache/hadoop/fs/tosfs/util/Iterables.java:[89,29]
cannot find symbol
[ERROR] symbol: class Nullable
[ERROR] location: class org.apache.hadoop.fs.tosfs.util.Iterables
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile)
on project hadoop-azure: Compilation failure: Compilation failure:
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsLease.java:[38,79]
package
org.apache.hadoop.thirdparty.org.checkerframework.checker.nullness.qual does
not exist
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsLease.java:[183,30]
cannot find symbol
[ERROR] symbol: class Nullable
[ERROR] -> [Help 1]
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile)
on project hadoop-hdfs-rbf: Compilation failure: Compilation failure:
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java:[102,79]
package
org.apache.hadoop.thirdparty.org.checkerframework.checker.nullness.qual does
not exist
[ERROR]
/Users/stevel/Projects/hadoop-trunk/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java:[2509,30]
cannot find symbol
[ERROR] symbol: class NonNull
[ERROR] location: class
org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.AsyncThreadFactory
[ERROR] -> [Help 1]
[ERROR]
{code}
> Resolve build error caused by missing Checker Framework (NonNull not
> recognized)
> --------------------------------------------------------------------------------
>
> Key: HADOOP-19717
> URL: https://issues.apache.org/jira/browse/HADOOP-19717
> Project: Hadoop Common
> Issue Type: Bug
> Components: hdfs, tos
> Affects Versions: 3.5.0
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> In the recent build, we encountered the following issue:
> *org.checkerframework.checker.nullness.qual.NonNull* could not be recognized,
> and the following error was observed.
> {code:java}
> [ERROR]
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-8011/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java:[216,50]
> package org.checkerframework.checker.nullness.qual does not exist
> [ERROR]
> /home/jenkins/jenkins-agent/workspace/hadoop-multibranch_PR-8011/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcServer.java:[2509,30]
> cannot find symbol
> [ERROR] symbol: class NonNull
> [ERROR] location: class
> org.apache.hadoop.hdfs.server.federation.router.RouterRpcServer.AsyncThreadFactory
> {code}
> I checked the usage in the related modules, and we should use
> *org.apache.hadoop.thirdparty.org.checkerframework.checker.nullness.qual.NonNull*
> instead of directly using
> {*}org.checkerframework.checker.nullness.qual.NonNull{*}.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]