[
https://issues.apache.org/jira/browse/HADOOP-20093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18150094#comment-18150094
]
ASF GitHub Bot commented on HADOOP-20093:
-----------------------------------------
hadoop-yetus commented on PR #9020:
URL: https://github.com/apache/hadoop/pull/9020#issuecomment-7122581213
:confetti_ball: **+1 overall**
| Vote | Subsystem | Runtime | Logfile | Comment |
|:----:|----------:|--------:|:--------:|:-------:|
| +0 :ok: | reexec | 6m 42s | | 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 | 30m 13s | | trunk passed |
| +1 :green_heart: | compile | 9m 47s | | trunk passed with JDK
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | compile | 10m 1s | | trunk passed with JDK
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | checkstyle | 0m 56s | | trunk passed |
| +1 :green_heart: | mvnsite | 1m 14s | | trunk passed |
| +1 :green_heart: | javadoc | 0m 52s | | trunk passed with JDK
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | javadoc | 0m 55s | | trunk passed with JDK
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | spotbugs | 1m 52s | | trunk passed |
| +1 :green_heart: | shadedclient | 18m 34s | | branch has no errors
when building and testing our client artifacts. |
|||| _ Patch Compile Tests _ |
| +1 :green_heart: | mvninstall | 0m 47s | | the patch passed |
| +1 :green_heart: | compile | 9m 9s | | the patch passed with JDK
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | javac | 9m 9s | | the patch passed |
| +1 :green_heart: | compile | 9m 37s | | the patch passed with JDK
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | javac | 9m 37s | | the patch passed |
| +1 :green_heart: | blanks | 0m 0s | | The patch has no blanks
issues. |
| +1 :green_heart: | checkstyle | 0m 49s | |
hadoop-common-project/hadoop-common: The patch generated 0 new + 9 unchanged -
11 fixed = 9 total (was 20) |
| +1 :green_heart: | mvnsite | 1m 18s | | the patch passed |
| +1 :green_heart: | javadoc | 0m 57s | | the patch passed with JDK
Ubuntu-21.0.13.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | javadoc | 0m 57s | | the patch passed with JDK
Ubuntu-17.0.21.1+2-1-24.04.1-Ubuntu |
| +1 :green_heart: | spotbugs | 1m 53s | | the patch passed |
| +1 :green_heart: | shadedclient | 18m 24s | | patch has no errors
when building and testing our client artifacts. |
|||| _ Other Tests _ |
| +1 :green_heart: | unit | 19m 10s | | hadoop-common in the patch
passed. |
| +1 :green_heart: | asflicense | 0m 48s | | The patch does not
generate ASF License warnings. |
| | | 146m 26s | | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | ClientAPI=1.57 ServerAPI=1.57 base:
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-9020/2/artifact/out/Dockerfile
|
| GITHUB PR | https://github.com/apache/hadoop/pull/9020 |
| Optional Tests | dupname asflicense compile javac javadoc mvninstall
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
| uname | Linux 602717f5ed8c 5.15.0-204-generic #214-Ubuntu SMP Fri Nov 6
00:52:52 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux |
| Build tool | maven |
| Personality | dev-support/bin/hadoop.sh |
| git revision | trunk / 84dd9ad795288bfe09260f9b69547aa2b2f25fd0 |
| 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-9020/2/testReport/ |
| Max. process+thread count | 1289 (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-9020/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.
> Make TestZKDelegationTokenSecretManager#testNodesLoadedAfterRestart
> deterministic (renew before restart, wait for load, wider expiry window)
> --------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-20093
> URL: https://issues.apache.org/jira/browse/HADOOP-20093
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Jose Luis López
> Assignee: Jose Luis López
> Priority: Major
> Labels: flaky-test, pull-request-available
>
> h3. Summary
> TestZKDelegationTokenSecretManager#testNodesLoadedAfterRestart
> (hadoop-common) races the ZK delegation-token background threads around the
> ZooKeeper restart. The test reads the restarted manager's memory immediately
> after startup instead of waiting for the load, and its 5s renewal/expiry
> window is not wider than the background thread's hard-coded minimum 5s sleep,
> so the good token can expire before the assertions. The result is an
> intermittently failing test.
> h3. Problems
> # After the restart, the test calls zksmNew.getTokenInfoFromMemory(id)
> immediately; the restarted manager loads tokens from ZK asynchronously, so
> the read can return null and the assertion "good dt should be in memory!"
> fails.
> # The good token is not renewed before the old manager is destroyed; with
> RENEW_INTERVAL=5 and the background thread sleeping at least 5 seconds, the
> token can expire during the restart window.
> # The disappearance of the token after expiry is polled with
> GenericTestUtils.waitFor, but the corresponding appearance check after the
> restart is missing (immediate read instead).
> h3. Proposed fix
> A deterministic version of the test exists as commit f64cb3a1df6 ("Make ZK
> restart test deterministic", contributed through PR #8838, where it does not
> belong):
> * renew the good token ({{tm.renewToken(token, "good")}}) before destroying
> the old manager, so it survives the restart window;
> * wait with GenericTestUtils.waitFor(100, 5000) for the restarted manager to
> load the token into memory before asserting;
> * extend RENEW_INTERVAL from 5 to 10 seconds so the token does not expire
> before the final assertions (test runtime grows by ~5s).
> h3. Relationship to other issues
> * HADOOP-20009 hardened token-manager cleanup in the same test; HADOOP-20011
> releases token managers and Curator clients in finally blocks. Neither covers
> the deterministic lifecycle above.
> * The change currently rides in PR #8838 (YARN-12025) as an unrelated commit;
> it should land separately against this issue so the Router PR stays
> review-scoped.
> h3. Notes
> The modified test has not been executed on the reporter's host (no
> hadoop-common test run); the change is small and mechanical, and the patch is
> ready to be split out of PR #8838.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]