Skip to content

MINOR: Fix duplicate IPv6 entries in ducker-ak #19926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

Yunyung
Copy link
Collaborator

@Yunyung Yunyung commented Jun 8, 2025

Fix issue where, when using IPv6, IPv6 entries are appended twice to
/etc/hosts, resulting in duplicate lines.

@github-actions github-actions bot added triage PRs from the community tests Test fixes (including flaky tests) small Small PRs labels Jun 8, 2025
Copy link
Contributor

@DL1231 DL1231 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, left a comment.

[[ $? -ne 0 ]] && die "failed to append to the /etc/hosts file on ${node}"
else
docker exec --user=root "${node}" \
bash -c "grep -v ${node} /opt/kafka-dev/tests/docker/build/node_hosts >> /etc/hosts"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the IPv4 address filtered to remove "self", while the IPv6 address does not filter out "self"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should do this.
@kevin-wu24 What do you think as the author of #19537

@github-actions github-actions bot removed the triage PRs from the community label Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small Small PRs tests Test fixes (including flaky tests)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants