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

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

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

   :confetti_ball: **+1 overall**
   
   
   
   
   
   
   | Vote | Subsystem | Runtime |  Logfile | Comment |
   |:----:|----------:|--------:|:--------:|:-------:|
   | +0 :ok: |  reexec  |   0m 58s |  |  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.  
|
   | +0 :ok: |  xmllint  |   0m  1s |  |  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 2 new or modified test files.  |
   |||| _ trunk Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |  41m  9s |  |  trunk passed  |
   | +1 :green_heart: |  compile  |   1m 45s |  |  trunk passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  compile  |   1m 47s |  |  trunk passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  checkstyle  |   1m 48s |  |  trunk passed  |
   | +1 :green_heart: |  mvnsite  |   1m 55s |  |  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 28s |  |  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 35s |  |  branch has no errors 
when building and testing our client artifacts.  |
   |||| _ Patch Compile Tests _ |
   | +1 :green_heart: |  mvninstall  |   1m 20s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 14s |  |  the patch passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |   1m 14s |  |  the patch passed  |
   | +1 :green_heart: |  compile  |   1m 15s |  |  the patch passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javac  |   1m 15s |  |  the patch passed  |
   | +1 :green_heart: |  blanks  |   0m  0s |  |  The patch has no blanks 
issues.  |
   | +1 :green_heart: |  checkstyle  |   1m 16s |  |  the patch passed  |
   | +1 :green_heart: |  mvnsite  |   1m 26s |  |  the patch passed  |
   | +1 :green_heart: |  javadoc  |   0m 56s |  |  the patch passed with JDK 
Ubuntu-21.0.11+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  javadoc  |   1m  0s |  |  the patch passed with JDK 
Ubuntu-17.0.19+10-1-24.04.2-Ubuntu  |
   | +1 :green_heart: |  spotbugs  |   3m 45s |  |  the patch passed  |
   | +1 :green_heart: |  shadedclient  |  30m 31s |  |  patch has no errors 
when building and testing our client artifacts.  |
   |||| _ Other Tests _ |
   | +1 :green_heart: |  unit  | 273m 14s |  |  hadoop-hdfs in the patch 
passed.  |
   | +1 :green_heart: |  asflicense  |   0m 46s |  |  The patch does not 
generate ASF License warnings.  |
   |  |   | 403m  2s |  |  |
   
   
   | Subsystem | Report/Notes |
   |----------:|:-------------|
   | Docker | ClientAPI=1.55 ServerAPI=1.55 base: 
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8638/1/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 3dcb1751fb89 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 / 150cd8dda47d1d692f44dab45a8dea13965f3b4c |
   | 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/1/testReport/ |
   | Max. process+thread count | 3397 (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/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.
   
   




>  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