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

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

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

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |   0m 57s |  |  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 :green_heart: |  test4tests  |   0m  0s |  |  The patch appears to 
include 1 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  48m 33s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |  18m  5s |  |  trunk passed with JDK 
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  compile  |  18m 20s |  |  trunk passed with JDK 
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   1m 30s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   2m  1s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m 28s |  |  trunk passed with JDK 
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   1m 23s |  |  trunk passed with JDK 
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   3m 17s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  38m 16s |  |  branch has no errors 
when building and testing our client artifacts.  |
   | +0 :ok: |  patch  |  38m 52s |  |  Used cumulative diff to apply patch. 
Per-commit history not preserved.  |
   |||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 18s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  17m 13s |  |  the patch passed with JDK 
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javac  |  17m 13s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |  18m 18s |  |  the patch passed with JDK 
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javac  |  18m 18s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   1m 28s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   2m  3s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   1m 25s |  |  the patch passed with JDK 
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   1m 24s |  |  the patch passed with JDK 
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   3m 27s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  37m 52s |  |  patch has no errors 
when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  |  23m 57s |  |  hadoop-common in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   1m 13s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 245m  1s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.57 ServerAPI=1.57 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8922/2/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8922 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
   | uname | Linux 62df5e367016 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 / 810c22ca91c1c81557336bedff47773dd40a9464 |
   | Default Java | Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
   | Multi-JDK versions | 
/usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu 
/usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8922/2/testReport/ |
   | Max. process+thread count | 1263 (vs. ulimit of 10000) |
   | modules | C: hadoop-common-project/hadoop-common U: 
hadoop-common-project/hadoop-common |
   | Console output | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8922/2/console |
   | versions | git=2.43.0 maven=3.9.15 spotbugs=4.9.7 |
   | Powered by | Apache Yetus 0.16.0-SNAPSHOT https://yetus.apache.org |
   | Tested commit | 810c22ca91c1c81557336bedff47773dd40a9464 |
   
   
   This message was automatically generated.
   
   <!

> AbstractFileSystem#create skips the blockSize/bytesPerChecksum check unless 
> the BytesPerChecksum option is set
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-20059
>                 URL: https://issues.apache.org/jira/browse/HADOOP-20059
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Yang Jie
>            Priority: Minor
>              Labels: pull-request-available
>
> AbstractFileSystem#create rejects a block size that is not a multiple of the 
> checksum size with {{if (blockSize % bytesPerChecksum != 0)}}. 
> {{bytesPerChecksum}} is a local variable that stays at -1 unless the caller 
> passes {{CreateOpts.bytesPerChecksum}}, and {{x % -1}} is always 0, so the 
> check never fires in the usual case. HADOOP-8240 removed the line that used 
> to fill in the server default and left the check reading the old variable.
> On HDFS, {{FileContext.create(p, EnumSet.of(CREATE, OVERWRITE), 
> CreateOpts.blockSize(1000))}} gets past AbstractFileSystem and the NameNode 
> creates the file, deleting the existing one because of OVERWRITE. Only then 
> does the DFSOutputStream constructor throw "bytesPerChecksum ... must divide 
> block size". The caller gets an exception, the old file is gone, and an empty 
> file stays under construction until lease recovery.
> The fix checks against {{checksumOpt.getBytesPerChecksum()}}, the value the 
> stream is created with, so the create fails before it reaches the file system.
> On file systems that ignore the block size (local, object stores), 
> FileContext#create with a block size that is not a multiple of the checksum 
> size (512 by default) now fails, as it did before HADOOP-8240. 
> DistributedFileSystem#create has the same create-then-check order inside 
> DFSClient; that needs a separate HDFS change.



--
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