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

ASF GitHub Bot commented on HDFS-17947:
---------------------------------------

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

   :broken_heart: **-1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |   0m 56s |  |  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.  
|
   | +0 :ok: |  xmllint  |   0m  0s |  |  xmllint 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 3 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  41m 30s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 43s |  |  trunk passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  compile  |   1m 44s |  |  trunk passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   1m 50s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 54s |  |  trunk passed  |
   | +1 :green_heart: |  javadoc  |   1m 29s |  |  trunk passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   1m 29s |  |  trunk passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   4m  7s |  |  trunk passed  |
   | +1 :green_heart: |  shadedclient  |  31m 28s |  |  branch has no errors 
when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 19s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 13s |  |  the patch passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |   1m 13s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 17s |  |  the patch passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |   1m 17s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   1m 14s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 24s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 59s |  |  the patch passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   0m 59s |  |  the patch passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   3m 46s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  30m 41s |  |  patch has no errors 
when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | -1 :x: |  unit  | 273m 30s | 
[/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt](https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8638/2/artifact/out/patch-unit-hadoop-hdfs-project_hadoop-hdfs.txt)
 |  hadoop-hdfs in the patch passed.  |
   | +1 :green_heart: |  asflicense  |   0m 48s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 403m 41s |  |  |
   
   
   | Reason | Tests |
   |-------:|:------|
   | Failed junit tests | hadoop.hdfs.TestBlockTokenZeroLifetimeWithDFS |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.55 ServerAPI=1.55 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8638/2/artifact/out/Dockerfile
 |
   | GITHUB PR | https://github.com/apache/hadoop/pull/8638 |
   | Optional Tests | dupname asflicense compile javac javadoc mvninstall 
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets xmllint |
   | uname | Linux 76dc6834a2fb 5.15.0-181-generic #191-Ubuntu SMP Fri May 22 
19:09:02 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
   | Build tool | maven |
   | Personality | dev-support/bin/hadoop.sh |
   | git revision | trunk / b0ce37d1a57ccff7031c95e509ccb604b76569c2 |
   | Default Java | Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   | Multi-JDK versions | 
/usr/lib/jvm/java-21-openjdk-amd64:Ubuntu-21.0.11+10-1-24.04.2-Ubuntu 
/usr/lib/jvm/java-17-openjdk-amd64:Ubuntu-17.0.19+10-1-24.04.2-Ubuntu |
   |  Test Results | 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8638/2/testReport/ |
   | Max. process+thread count | 3112 (vs. ulimit of 10000) |
   | 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-8638/2/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.
   
   




>  dfs.block.access.token.lifetime=0 can cause DataStreamer 
> createBlockOutputStream failure
> -----------------------------------------------------------------------------------------
>
>                 Key: HDFS-17947
>                 URL: https://issues.apache.org/jira/browse/HDFS-17947
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 3.4.3
>            Reporter: jiang he
>            Priority: Major
>              Labels: pull-request-available
>
> When block access tokens are enabled and dfs.block.access.token.lifetime is
>   set to 0, HDFS write operations fail with a DataStreamer error.
>   Reproduced with Hadoop 3.4.3.
>   The same test passes when dfs.block.access.token.lifetime is set to a normal
>   positive value.
>   Reproduction config
>   <configuration>
>     <property>
>       <name>dfs.replication</name>
>       <value>1</value>
>     </property>
>     <property>
>       <name>dfs.datanode.du.reserved.calculator</name>
>       
> <value>org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.ReservedSpaceCalculator$ReservedSpaceCalculatorAbsolu
>   te</value>
>     </property>
>     <property>
>       <name>dfs.block.access.token.lifetime</name>
>       <value>0</value>
>     </property>
>     <property>
>       <name>dfs.namenode.upgrade.domain.factor</name>
>       <value>${dfs.replication}</value>
>     </property>
>     <property>
>       <name>dfs.ha.zkfc.nn.http.timeout.ms</name>
>       <value>20000</value>
>     </property>
>     <property>
>       <name>dfs.namenode.reencrypt.throttle.limit.updater.ratio</name>
>       <value>1.0</value>
>     </property>
>     <property>
>       <name>dfs.namenode.redundancy.considerLoadByVolume</name>
>       <value>false</value>
>     </property>
>     <property>
>       <name>dfs.datanode.du.reserved</name>
>       <value>0</value>
>     </property>
>     <property>
>       <name>dfs.datanode.du.reserved.pct</name>
>       <value>0</value>
>     </property>
>     <property>
>       <name>dfs.block.access.token.enable</name>
>       <value>True</value>
>     </property>
>     <property>
>       <name>dfs.replication</name>
>       <value>3</value>
>     </property>
>     <property>
>       <name>dfs.namenode.reencrypt.throttle.limit.handler.ratio</name>
>       <value>1.0</value>
>     </property>
>   </configuration>
>   Observed
>   WARN hdfs.DataStreamer:
>   Exception in createBlockOutputStream blk_1073741825_1001
>   The API test fails while writing to HDFS.
>   Full observed wrapper output:
>   API operation exception and shut done hdfs!
>   Exception in thread "main" java.lang.RuntimeException:
>   API request Exception: Operation exception[info_excetion]
>   2026-06-26 15:59:40,444 WARN hdfs.DataStreamer:
>   Exception in createBlockOutputStream blk_1073741825_1001
>   Expected
>   Either dfs.block.access.token.lifetime=0 should be rejected with a clear
>   configuration validation error, or HDFS should handle this value without
>   causing DataStreamer write failure.
>   Control test
>   dfs.block.access.token.enable=true
>   dfs.block.access.token.lifetime=600
>   passes successfully.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to