Skip to content
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

Add etcd test #20

Merged
merged 1 commit into from
Mar 12, 2024
Merged

Add etcd test #20

merged 1 commit into from
Mar 12, 2024

Conversation

ssyssy
Copy link
Collaborator

@ssyssy ssyssy commented Mar 9, 2024

No description provided.

@ssyssy ssyssy requested a review from LuQQiu March 9, 2024 00:21
@LuQQiu LuQQiu changed the base branch from main to dev March 11, 2024 18:21
tests/conftest.py Outdated Show resolved Hide resolved
tests/conftest.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@LuQQiu LuQQiu left a comment

Choose a reason for hiding this comment

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

Cool, left some minor comments

tests/conftest.py Outdated Show resolved Hide resolved
run_cmd_worker = (
"docker run --platform linux/amd64 -d --rm --net=alluxio_network -p 28080:28080 -p 29999:29999 -p 29997:29997 "
"docker run --platform linux/amd64 -d --rm -h localhost --net=alluxio_network -p 28080:28080 -p 29999:29999 -p 29997:29997 "
Copy link
Collaborator

Choose a reason for hiding this comment

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

why -h localhost is needed for worker but not for master?

Copy link
Collaborator

Choose a reason for hiding this comment

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

why need localhost parameter?

Copy link
Collaborator Author

@ssyssy ssyssy Mar 11, 2024

Choose a reason for hiding this comment

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

@LuQQiu So when worker register itself into etcd. It uses its own hostname to register. That hostname will be its container hash without specifying the hostname here. So the python client will not get the correct worker host from etcd.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@ssz1997 is it the recommended way?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@LuQQiu Tried another way, use alluxio config to do that.

Copy link
Collaborator

@LuQQiu LuQQiu left a comment

Choose a reason for hiding this comment

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

LGTM!

@LuQQiu LuQQiu merged commit 444f0e4 into dev Mar 12, 2024
3 checks passed
@ssyssy ssyssy deleted the add-etcd-test branch March 12, 2024 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants