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

[yugabyted] yugabyted doesn't verify join flag when passed through config file. #23007

Open
1 task done
gargsans-yb opened this issue Jun 25, 2024 · 0 comments
Open
1 task done
Assignees
Labels
area/ecosystem Label for all ecosystem related projects kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage

Comments

@gargsans-yb
Copy link
Contributor

gargsans-yb commented Jun 25, 2024

Jira Link: DB-11929

Description

When starting a cluster, if the join flag is provided through the config file, yugabyted doesn't complete the config validation step for join flag causing the node to start as a read-replica node.

Steps to replicate:

Start the 1st node: 
./yugabyted start --advertise_address 127.0.0.1 --base_dir ~/yb-cluster/node1

Create a `ybd.conf` file with following content:

{
     "join": "127.0.0.1"
}


Start the 2nd node: 
./yugabyted start --advertise_address 127.0.0.2 --base_dir ~/yb-cluster/node2 --config=~/ybd.conf

This causes the 2nd node to start as a read replica as the placement UUID set for both nodes are different.

Screenshot 2024-06-25 at 8 26 11 PM

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.
@gargsans-yb gargsans-yb added area/ecosystem Label for all ecosystem related projects status/awaiting-triage Issue awaiting triage area/ybd yugabyted project related Github tickets. labels Jun 25, 2024
@gargsans-yb gargsans-yb self-assigned this Jun 25, 2024
@yugabyte-ci yugabyte-ci added kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue and removed area/ybd yugabyted project related Github tickets. labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ecosystem Label for all ecosystem related projects kind/enhancement This is an enhancement of an existing feature priority/medium Medium priority issue status/awaiting-triage Issue awaiting triage
Projects
DB Usability
Awaiting triage
Development

No branches or pull requests

2 participants