Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG]Clusters deployed using IPV6 do not support the DiscoverNodes method. #458

Closed
Zhang-jie-jun opened this issue Jan 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Zhang-jie-jun
Copy link
Contributor

What is the bug?

When using the opensearch-go library to access an opensearch cluster deployed with IPV6, an access error will occur when calling other APIs after calling the DiscoverNodes method.

How can one reproduce the bug?

  • Construct a client using NewClient
  • Call client.DiscoverNodes method
  • Calling another API
    For example: opensearchapi.CatMasterRequest{}.Do(context.Background(), client)

What is the expected behavior?

Able to use the opensearch-go library to normally access the OpenSearch cluster deployed with IPV6

What is your host/environment?

go1.17.1 Windows/amd64

Do you have any screenshots?

image

Do you have any additional context?

  • Failure
    image

+Success
image

@Zhang-jie-jun Zhang-jie-jun added bug Something isn't working untriaged labels Jan 18, 2024
@dblock
Copy link
Member

dblock commented Jan 18, 2024

Looks legit. Want to try to add a test and implement a fix for this?

@dblock dblock removed the untriaged label Jan 18, 2024
Zhang-jie-jun added a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
…ter deployed with IPV6, an access error will occur when calling other APIs after calling the DiscoverNodes method.

opensearch-project#458

Signed-off-by: 张洁俊 <82801500+Zhang-jie-jun@users.noreply.github.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 19, 2024
Zhang-jie-jun added a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
…ter deployed with IPV6, an access error will occur when calling other APIs after calling the DiscoverNodes method.

opensearch-project#458

Signed-off-by: 张洁俊 <82801500+Zhang-jie-jun@users.noreply.github.com>
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Zhang-jie-jun pushed a commit to Zhang-jie-jun/opensearch-go that referenced this issue Jan 24, 2024
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Jakob3xD pushed a commit that referenced this issue Jan 24, 2024
…hod (#461)

* fix:When using the opensearch-go library to access an opensearch cluster deployed with IPV6, an access error will occur when calling other APIs after calling the DiscoverNodes method.

#458

Signed-off-by: 张洁俊 <82801500+Zhang-jie-jun@users.noreply.github.com>
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>

* fix:#458

Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>

---------

Signed-off-by: 张洁俊 <82801500+Zhang-jie-jun@users.noreply.github.com>
Signed-off-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
Co-authored-by: 张洁俊(Jack) <jack.zhang@eisoo.com>
Co-authored-by: 张洁俊(Jack) <zhang.jiejun@outlook.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants