[
https://issues.apache.org/jira/browse/HDFS-14724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905373#comment-16905373
]
Wei-Chiu Chuang commented on HDFS-14724:
----------------------------------------
I'm not sure Yetus doesn't complain, but this is what I have when I build with
JDK7:
{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 57.797 s
[INFO] Finished at: 2019-08-12T09:51:10-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
(default-testCompile) on project hadoop-hdfs: Compilation failure: Compilation
failure:
[ERROR]
/Users/weichiu/sandbox/upstream/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/HATestUtil.java:[39,35]
cannot find symbol
[ERROR] symbol: class LongAccumulator
[ERROR] location: package java.util.concurrent.atomic
[ERROR]
/Users/weichiu/sandbox/upstream/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java:[226,23]
cannot find symbol
[ERROR] symbol: method
setBlockManagerForTesting(org.apache.hadoop.hdfs.server.blockmanagement.BlockManager)
[ERROR] location: class org.apache.hadoop.hdfs.server.namenode.FSNamesystem
[ERROR] -> [Help 1]
{noformat}
> Fix JDK7 compatibility in branch-2
> ----------------------------------
>
> Key: HDFS-14724
> URL: https://issues.apache.org/jira/browse/HDFS-14724
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.10.0
> Reporter: Wei-Chiu Chuang
> Priority: Blocker
>
> With the feature Consistent Read from Standby now in branch-2, I found it
> breaks the build when building with JDK7, because it uses
> java.util.concurrent.atomic.LongAccumulator which is only in JDK8 and above.
>
> We should figure out if we want to fix it, or give up JDK7 compatibility.
> [~xkrogen] [~shv] [~vagarychen]
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]