hadoop icon indicating copy to clipboard operation
hadoop copied to clipboard

HDFS-16661. Improve Code With Lambda in AsyncLoggerSet class

Open ZanderXu opened this issue 3 years ago • 5 comments

Description of PR

Improve Code With Lambda in AsyncLoggerSet class

ZanderXu avatar Jul 14 '22 15:07 ZanderXu

:broken_heart: -1 overall

Vote Subsystem Runtime Logfile Comment
+0 :ok: reexec 0m 40s Docker mode activated.
_ Prechecks _
+1 :green_heart: dupname 0m 0s No case conflicting files found.
+0 :ok: codespell 0m 0s codespell was not available.
+0 :ok: detsecrets 0m 0s detect-secrets was not available.
+1 :green_heart: @author 0m 0s The patch does not contain any @author tags.
-1 :x: test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ trunk Compile Tests _
+1 :green_heart: mvninstall 37m 32s trunk passed
+1 :green_heart: compile 1m 43s trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1
+1 :green_heart: compile 1m 37s trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
+1 :green_heart: checkstyle 1m 27s trunk passed
+1 :green_heart: mvnsite 1m 44s trunk passed
+1 :green_heart: javadoc 1m 26s trunk passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1
+1 :green_heart: javadoc 1m 47s trunk passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
+1 :green_heart: spotbugs 3m 47s trunk passed
+1 :green_heart: shadedclient 23m 13s branch has no errors when building and testing our client artifacts.
_ Patch Compile Tests _
+1 :green_heart: mvninstall 1m 24s the patch passed
+1 :green_heart: compile 1m 25s the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1
+1 :green_heart: javac 1m 25s the patch passed
+1 :green_heart: compile 1m 23s the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
+1 :green_heart: javac 1m 23s the patch passed
+1 :green_heart: blanks 0m 0s The patch has no blanks issues.
-0 :warning: checkstyle 1m 3s /results-checkstyle-hadoop-hdfs-project_hadoop-hdfs.txt hadoop-hdfs-project/hadoop-hdfs: The patch generated 2 new + 9 unchanged - 6 fixed = 11 total (was 15)
+1 :green_heart: mvnsite 1m 29s the patch passed
+1 :green_heart: javadoc 0m 59s the patch passed with JDK Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1
+1 :green_heart: javadoc 1m 34s the patch passed with JDK Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
+1 :green_heart: spotbugs 3m 19s the patch passed
+1 :green_heart: shadedclient 22m 23s patch has no errors when building and testing our client artifacts.
_ Other Tests _
+1 :green_heart: unit 239m 9s hadoop-hdfs in the patch passed.
+1 :green_heart: asflicense 1m 15s The patch does not generate ASF License warnings.
348m 44s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4565/1/artifact/out/Dockerfile
GITHUB PR https://github.com/apache/hadoop/pull/4565
Optional Tests dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets
uname Linux 138bf5b13f6c 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision trunk / 8f38839e6159bf7034ffae7e7ef1d2b424baa73f
Default Java Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
Multi-JDK versions /usr/lib/jvm/java-11-openjdk-amd64:Private Build-11.0.15+10-Ubuntu-0ubuntu0.20.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_312-8u312-b07-0ubuntu1~20.04-b07
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4565/1/testReport/
Max. process+thread count 3207 (vs. ulimit of 5500)
modules C: hadoop-hdfs-project/hadoop-hdfs U: hadoop-hdfs-project/hadoop-hdfs
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-4565/1/console
versions git=2.25.1 maven=3.6.3 spotbugs=4.2.2
Powered by Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

hadoop-yetus avatar Jul 14 '22 21:07 hadoop-yetus

@goiri Can help me push this pr forward? After this, I will create a PR try to improve codes with Lambda in the whole hadoop-hdfs module.

ZanderXu avatar Jul 26 '22 10:07 ZanderXu

some checkStyle need fix

./hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/AsyncLoggerSet.java:208:  public QuorumCall<AsyncLogger,NewEpochResponseProto> newEpoch(long epoch) {:32: ',' is not followed by whitespace. [WhitespaceAfter]
./hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/client/AsyncLoggerSet.java:253:  QuorumCall<AsyncLogger,Void> acceptRecovery(SegmentStateProto log, URL fromURL) {:25: ',' is not followed by whitespace. [WhitespaceAfter]

slfan1989 avatar Jul 26 '22 15:07 slfan1989

Thanks @slfan1989 . Please review the latest patch, I have fixed these check style.

ZanderXu avatar Jul 26 '22 15:07 ZanderXu

@goiri Hi, master, can you help me merge it into the trunk? I will move to improve codes with Lambda in the whole hadoop-hdfs module.

ZanderXu avatar Jul 28 '22 00:07 ZanderXu