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

ASF GitHub Bot commented on HADOOP-20088:
-----------------------------------------

hadoop-yetus commented on PR #8995:
URL: https://github.com/apache/hadoop/pull/8995#issuecomment-6996890094

   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |  20m  3s |  |  Docker mode activated.  |
   |||| _ Prechecks _ |
   | +1 :green_heart: |  dupname  |   0m  0s |  |  No case conflicting files 
found.  |
   | +0 :ok: |  codespell  |   0m  1s |  |  codespell was not available.  |
   | +0 :ok: |  detsecrets  |   0m  1s |  |  detect-secrets was not available.  
|
   | +1 :green_heart: |  @author  |   0m  0s |  |  The patch does not contain 
any @author tags.  |
   | +1 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 2 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  52m 32s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   0m 54s |  |  trunk passed with JDK 
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  compile  |   0m 50s |  |  trunk passed with JDK 
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   0m 50s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   0m 52s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   0m 48s |  |  trunk passed with JDK 
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   0m 47s |  |  trunk passed with JDK 
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu  |
   | -1 :x: |  spotbugs  |   1m 20s | 
[/branch-spotbugs-hadoop-tools_hadoop-distcp-warnings.html](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8995/1/artifact/out/branch-spotbugs-hadoop-tools_hadoop-distcp-warnings.html)
 |  hadoop-tools/hadoop-distcp in trunk has 21 extant spotbugs warnings.  |
   | +1 :green_heart: |  shadedclient  |  35m 55s |  |  branch has no errors 
when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   0m 33s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 25s |  |  the patch passed with JDK 
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javac  |   0m 25s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   0m 26s |  |  the patch passed with JDK 
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javac  |   0m 26s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   0m 22s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   0m 30s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 22s |  |  the patch passed with JDK 
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   0m 22s |  |  the patch passed with JDK 
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   1m  0s |  |  hadoop-tools/hadoop-distcp 
generated 0 new + 10 unchanged - 11 fixed = 10 total (was 21)  |
   | +1 :green_heart: |  shadedclient  |  36m 47s |  |  patch has no errors 
when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |  40m 52s |  |  hadoop-distcp in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 47s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 200m 18s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.57 ServerAPI=1.57 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8995/1/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8995 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
   | uname | Linux cec8d5d61cec 5.15.0-198-generic #208-Ubuntu SMP Fri Sep 4 
10:22:38 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / 4fdc64b5c0dbe84ef13bcb66c2ab4399297f8013 |
   | Default Java | Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
   | Multi-JDK versions | 
/usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu 
/usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8995/1/testReport/ |
   | Max. process+thread count | 572 (vs. ulimit of 10000) |
   | modules | C: hadoop-tools/hadoop-distcp U: hadoop-tools/hadoop-distcp |
   | Console output | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8995/1/console |
   | versions | git=2.43.0 maven=3.9.15 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.14.1 https://yetus.apache.org |
   
   
   This message was automatically generated.
   
   




> Defensive copies and immutability fixes for hadoop-distcp SpotBugs warnings
> ---------------------------------------------------------------------------
>
>                 Key: HADOOP-20088
>                 URL: https://issues.apache.org/jira/browse/HADOOP-20088
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: tools/distcp
>            Reporter: Jose Luis López
>            Priority: Minor
>              Labels: pull-request-available
>
> The nightly trunk build (qbt) reports 19 SpotBugs warning(s) in 
> hadoop-tools/hadoop-distcp. This issue tracks fixing 10 of them by code 
> changes (defensive copies, unmodifiable views and related small behaviour 
> changes), with unit tests:
> # SimpleCopyListing, SS_SHOULD_BE_STATIC on maxRetries: private static final 
> int MAX_RETRIES
> # DiffInfo, CT_CONSTRUCTOR_THROW: package-private class made final
> # DynamicInputChunk, CT_CONSTRUCTOR_THROW: package-private class made final
> # DynamicInputChunkContext, CT_CONSTRUCTOR_THROW: package-private class made 
> final
> # CopyListingFileStatus, EI_EXPOSE_REP2 on setAclEntries: copies the list, 
> keeping null as null
> # CopyListingFileStatus, EI_EXPOSE_REP2 on setXAttrs: copies into a 
> LinkedHashMap, keeping null as null and the iteration order
> # DistCpContext, EI_EXPOSE_REP2 on setSourcePaths: copies the list, keeping 
> null as null
> # DistCpContext, EI_EXPOSE_REP on getSourcePaths: returns an unmodifiable 
> view, or null
> # DistCpOptions$Builder, EI_EXPOSE_REP2 on <init>: copies the source path 
> list (DistCpOptions is documented as immutable)
> # DistCpOptionSwitch, EI_EXPOSE_REP on getOption: returns a clone of the 
> enum's shared CLI Option
> No public method signature changes.
> The remaining 9 warnings, where the current behaviour is intended, are 
> handled by narrow module-level SpotBugs exclusions tracked in HADOOP-20017.
> Contains content generated by Claude Code.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to