[
https://issues.apache.org/jira/browse/HADOOP-20083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18147110#comment-18147110
]
ASF GitHub Bot commented on HADOOP-20083:
-----------------------------------------
hadoop-yetus commented on PR #8983:
URL: https://github.com/apache/hadoop/pull/8983#issuecomment-7001306681
:confetti_ball: **+1 overall**
| Vote | Subsystem | Runtime | Logfile | Comment |
|:----:|----------:|--------:|:--------:|:-------:|
| +0 :ok: | reexec | 1m 7s | | 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 1 new or modified test files. |
|||| _ trunk Compile Tests _ |
| +1 :green_heart: | mvninstall | 54m 14s | | trunk passed |
| +1 :green_heart: | compile | 22m 57s | | trunk passed with JDK
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | compile | 21m 26s | | trunk passed with JDK
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | checkstyle | 1m 42s | | trunk passed |
| +1 :green_heart: | mvnsite | 2m 15s | | trunk passed |
| +1 :green_heart: | javadoc | 1m 41s | | trunk passed with JDK
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | javadoc | 1m 40s | | trunk passed with JDK
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | spotbugs | 3m 29s | | trunk passed |
| +1 :green_heart: | shadedclient | 40m 2s | | branch has no errors
when building and testing our client artifacts. |
|||| _ Patch Compile Tests _ |
| +1 :green_heart: | mvninstall | 1m 25s | | the patch passed |
| +1 :green_heart: | compile | 19m 23s | | the patch passed with JDK
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | javac | 19m 23s | | the patch passed |
| +1 :green_heart: | compile | 21m 41s | | the patch passed with JDK
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | javac | 21m 41s | | the patch passed |
| +1 :green_heart: | blanks | 0m 0s | | The patch has no blanks
issues. |
| +1 :green_heart: | checkstyle | 1m 38s | | the patch passed |
| +1 :green_heart: | mvnsite | 2m 22s | | the patch passed |
| +1 :green_heart: | javadoc | 1m 39s | | the patch passed with JDK
Ubuntu-21.0.13.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | javadoc | 1m 42s | | the patch passed with JDK
Ubuntu-17.0.21.0.3+1-1-24.04.1-Ubuntu |
| +1 :green_heart: | spotbugs | 4m 6s | | the patch passed |
| +1 :green_heart: | shadedclient | 41m 12s | | patch has no errors
when building and testing our client artifacts. |
|||| _ Other Tests _ |
| +1 :green_heart: | unit | 23m 55s | | hadoop-common in the patch
passed. |
| +1 :green_heart: | asflicense | 1m 15s | | The patch does not
generate ASF License warnings. |
| | | 272m 38s | | |
| Subsystem | Report/Notes |
|----------:|:-------------|
| Docker | ClientAPI=1.57 ServerAPI=1.57 base:
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-8983/1/artifact/out/Dockerfile
|
| GITHUB PR | https://github.com/apache/hadoop/pull/8983 |
| Optional Tests | dupname asflicense compile javac javadoc mvninstall
mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets |
| uname | Linux 8da9748238a9 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 / 3f88fe5a141da67354817535b0f6166ede431471 |
| 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-8983/1/testReport/ |
| Max. process+thread count | 3133 (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-8983/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.
> MachineList matches a hostname entry against only one of its addresses
> ----------------------------------------------------------------------
>
> Key: HADOOP-20083
> URL: https://issues.apache.org/jira/browse/HADOOP-20083
> Project: Hadoop Common
> Issue Type: Sub-task
> Reporter: Siyao Meng
> Assignee: Siyao Meng
> Priority: Major
> Labels: pull-request-available
>
> {{MachineList}} resolves each hostname entry once, in the constructor, with
> {{InetAddress.getByName}}, and keeps only that one address
> ([MachineList.java:169|https://github.com/apache/hadoop/blob/904cde0c848781e67dde0b0aece8acad2e320204/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/MachineList.java#L169]).
> {{includes}} then looks the caller's address up in that set
> ([MachineList.java:224|https://github.com/apache/hadoop/blob/904cde0c848781e67dde0b0aece8acad2e320204/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/MachineList.java#L224]).
> {{getByName}} returns the first address of the host. With the JDK default
> ({{java.net.preferIPv6Addresses=false}}) that is the IPv4 address of a
> dual-stack host, so the host is not matched when it connects over IPv6. With
> {{preferIPv6Addresses=true}} it is the reverse. A hostname with several IPv4
> addresses has the same problem today.
> This affects every user of {{MachineList}}: {{hadoop.proxyuser.<user>.hosts}}
> ({{DefaultImpersonationProvider}}), the service level authorization host
> lists ({{ServiceAuthorizationManager}}) and {{FileBasedIPList}}. For example,
> on a dual-stack cluster a proxy user whose host is listed by name is rejected
> when it reaches the NameNode over IPv6.
> Reproduced on trunk ({{904cde0c848}}) with {{localhost}}, which resolves to
> both 127.0.0.1 and ::1:
> {noformat}
> InetAddress.getAllByName("localhost") = [localhost/127.0.0.1,
> localhost/0:0:0:0:0:0:0:1]
> new MachineList(["localhost"]).includes(127.0.0.1) = true
> new MachineList(["localhost"]).includes(::1) = false
> {noformat}
> With {{-Djava.net.preferIPv6Addresses=true}} the two results swap.
> *Proposed fix:*
> * Resolve hostname entries with {{getAllByName}} and keep every address.
> * Add {{getAllByName}} to {{InetAddressFactory}} so tests can simulate a host
> with several addresses.
> * Add tests for a dual-stack hostname matched from both address families.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]