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

[BUG] _remote/info API is giving "connected: false" when replication is undergoing with proxy mode. #1463

Open
skumarp7 opened this issue Nov 6, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@skumarp7
Copy link
Contributor

skumarp7 commented Nov 6, 2024

What is the bug?

_remote/info API is returning "connected" field as false even when the replication is happening seemlessly through proxy mode.

bash-4.4$ curl  -XGET "https://opensearch-1:9200/_remote/info?pretty" 
{
  "leader-site" : {
    "connected" : false,
    "mode" : "proxy",
    "proxy_address" : "localhost:9302",
    "server_name" : "",
    "num_proxy_sockets_connected" : 0,
    "max_proxy_socket_connections" : 18,
    "initial_connect_timeout" : "30s",
    "skip_unavailable" : false
  }
}

If there are more than 1 ingest nodes in the follower, the behaviour is different. When the API was hit to ingest node 1 - the result was false through out and when we hit the API to ingest node 2 - the result was true thoughout.

bash-4.4$ curl  -XGET "https://opensearch-2:9200/_remote/info?pretty" 
{
  "leader-site" : {
    "connected" : true,
    "mode" : "proxy",
    "proxy_address" : "localhost:9302",
    "server_name" : "",
    "num_proxy_sockets_connected" : 0,
    "max_proxy_socket_connections" : 18,
    "initial_connect_timeout" : "30s",
    "skip_unavailable" : false
  }
}

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Install leader and follower opensearch (each having one ingest, one data and one master node) and create a autofollow replication rule in follower.
  2. Ensure that the indices are getting replicated to the follower cluster.
  3. Check the connection status using _remote/info API
  4. "connected" field is returning false through out even though the replication is happening.

If there are more than 1 ingest nodes in the follower, the behaviour is different. When the API was hit to ingest node 1 - the result was false through out and when we hit the API to ingest node 2 - the result was true thoughout.

What is the expected behavior?
The "connected" field in _remote/info should be consistently "true" when the connection is successful across passive and active site and when the replication is performing seemlessly. Is this API valid in these scenarios?

@skumarp7 skumarp7 added bug Something isn't working untriaged labels Nov 6, 2024
@skumarp7
Copy link
Contributor Author

Hi @ankitkala,

Any view on this ?

@ankitkala
Copy link
Member

Looks like there might be a bug. Can you take a stab at why this might be happening?

@dblock dblock removed the untriaged label Nov 25, 2024
@dblock
Copy link
Member

dblock commented Nov 25, 2024

[Catch All Triage - 1, 2, 3, 4, 5]

@skumarp7
Copy link
Contributor Author

Hi @ankitkala ,

I can look into it. But i would like to know if this actually might impact the system at a high level. Can you check and let us know if you have any info on this as in our deployment, this is observed a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants