We have 2 node cluster. Based on the documentation, we need to provide IP of only single node to connect to the cluster. Details of other nodes should be fetched by the seed node.
In our case it works fine for inserts and but fetches only partial data for selects. We are using Java Client. And we are fetching all records based on Namespace and Set. Issue also occurs for ScanAll.
In case we provide both IPs to Java client Select works fine.
Switch your access-address and alternate-access-address entries and everything should work.
OR – Alternatively, in your client application, set use Alternate services to true … look at the specific client api connection policy settings.
Aerospike seed node - the first node you connect to - sends access-address ip address of all other nodes by default to client unless client says - hey - send me the alternate-access-address of each node of the cluster. i.e. sets connection policy param use alternate services to true.