Hello. We're planning a 5.6 -> 6.5 upgrade here and I noticed that the local transport type has been removed in the latest version. We only use it once: for integration tests, we spin up a local ES node with transport.type set to local.
May I please ask you to tell me what is the recommended way to do that moving forward? I've had a shot using MockTcpTransportPlugin but I'm not sure I'm doing it well as am getting loads of transport handlers for action indices:data/write/bulk is already registered errors.
If you had a sample code somewhere that would be extremely helpful.
Running an embedded node can be useful for debugging Elasticsearch's internals. You can just use the normal TCP transport to talk to it, or use a REST client, or you can call Node#client() to get a client that talks to the node directly. No need to mock anything - indeed, the MockTcpTransportPlugin is removed in master. The EsIntegTestCase and InternalTestCluster classes work together to start embedded nodes for use in test cases, so perhaps it's useful to look there too.
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.