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

Fix ClusterSessionInit #105

Merged
merged 7 commits into from
Aug 29, 2024
Merged

Fix ClusterSessionInit #105

merged 7 commits into from
Aug 29, 2024

Conversation

HTHou
Copy link
Contributor

@HTHou HTHou commented Aug 29, 2024

If there are some of addresses in NodeUrl list are invalid, the session cannot init correctly.

To reproduce, start IoTDB 1c1d and execute the following code.

config := &client.ClusterConfig{
	NodeUrls: strings.Split("127.0.0.1:6667,127.0.0.1:6668,127.0.0.1:6669", ","),
	UserName: "root",
	Password: "root",
}
session = client.NewClusterSession(config)
if err := session.OpenCluster(false); err != nil {
	log.Fatal(err)
}

@Beyyes Beyyes merged commit bb812b8 into main Aug 29, 2024
6 checks passed
@Beyyes Beyyes deleted the fix_ClusterSessionInit branch August 29, 2024 07:47
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