[
https://issues.apache.org/jira/browse/HADOOP-19717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18027976#comment-18027976
]
ASF GitHub Bot commented on HADOOP-19717:
-----------------------------------------
slfan1989 opened a new pull request, #8015:
URL: https://github.com/apache/hadoop/pull/8015
<!--
Thanks for sending a pull request!
1. If this is your first time, please read our contributor guidelines:
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
2. Make sure your PR title starts with JIRA issue id, e.g.,
'HADOOP-17799. Your PR title ...'.
-->
### Description of PR
JIRA: HADOOP-19717. Resolve build error caused by missing Checker Framework
(NonNull not recognized).
### How was this patch tested?
### For code changes:
- [ ] Does the title or this PR starts with the corresponding JIRA issue id
(e.g. 'HADOOP-17799. Your PR title ...')?
- [ ] Object storage: have the integration tests been executed and the
endpoint declared according to the connector-specific documentation?
- [ ] If adding new dependencies to the code, are these dependencies
licensed in a way that is compatible for inclusion under [ASF
2.0](http://www.apache.org/legal/resolved.html#category-a)?
- [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`,
`NOTICE-binary` files?
> 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
> Reporter: Shilun Fan
> Assignee: Shilun Fan
> Priority: Major
>
> 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]