Fetch node info by rpc_address if it has a broadcast_address which is not in system.peers

Description

ControlConnection#fetchNodeInfo currently does the following:

  1. if the hosts's broadcast_address is known, select from system.peers where peer = broadcast_address

  2. otherwise, select * from system.peers, and look for a row where rpc_address matches host.address

There is an edge case where the broadcast_address address could be known but invalid. So it makes sense to fallback to step 2 if step 1 finds no row. See this pull request for more details and a patch.

Environment

None

Pull Requests

None

Status

Assignee

Alexandre Dutra

Reporter

Olivier Michallat

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Sprint

Priority

Minor
Configure