After I set up the cross-cluster search and restarted the ES node, this API doesn't return empty seeds node until I make a cross-cluster search request.
Restarting nodes should not be necessary. As long as you wait for the response of the cluster update settings API to come back, the connection to the remote clusters should initiated. What do you get back from the cluster update settings API?
Ok, and can you reproduce this all the time? Meaning every time you register a new cluster, you call remote info API after cluster update settings API has returned, and you get no nodes connected, yet you run search, you get results and the nodes appear in the output of remote info?
I am asking because it may happen depending on your setup, I guess, but it's not the expected behaviour.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.