question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[ReactiveElasticsearchTemplate] port defaults to 9200 even when it's not wanted

See original GitHub issue

Hello, Today I was playing with this project. I was testing standard template where everything seems to work and also reactive where I had a problem like described on this SO question. The problem is that we are not using port at all, or at least our url to the elastic doesn’t have the port and it’s working with standard client. When I test the same url in reactive template then I had an error where the port 9200 was appended to the end.

Can somebody please clarify what is the configuration for ReactiveElasticsearchTemplate when the url doesn’t contain port?

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sothawocommented, Feb 10, 2021

Spring Data Elasticsearch does not use - as well as the other Spring Data modules - configuration entries.

These configuration entries and the whole autoconfiguration stuff is part of Spring Boot. Spring Boot uses these entries to configure Spring Data Elasticsearch, so you would probably need to address this issue with the boot team.

0reactions
bilakcommented, Feb 10, 2021

@sothawo sorry for bothering, but wasn’t there plan to reuse the configuration uris spring.elasticsearch.rest.uris for autoconfiguration of reactive rest template? It shouldn’t be that hard to parse those informations from URL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Defaulting to port 9200 #669 - elastic/elasticsearch-ruby
Per the spec of RFC 3986, when the optional port is not included, the default port for the scheme should be used. Therefore,...
Read more >
Elasticsearch: How to know HTTP port number used when ...
Defaults to 9200 -9300. Let's say that Elasticsearch automatically selects the port 9202 because the 9200 is already in use. How does a...
Read more >
Spring Data Elasticsearch - Reference Documentation
If the repository infrastructure does not find a declared query for the method at bootstrap time, it fails. CREATE_IF_NOT_FOUND (the default) ...
Read more >
What are ports 9200 and 9300 used for? - Elastic Discuss
This is an extension on an older thread - Elasticsearch port 9200 or 9300?] By default, Elasticsearch uses two ports to listen to...
Read more >
A Quick Guide to Elasticsearch with Spring Data and Spring ...
The Java API Client is not listed as a supported client yet. In the meantime, the Java Transport Client is still supported in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found