Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TcpHost to ElasticsearchContainer #956

Merged
merged 1 commit into from
Nov 20, 2018
Merged

Add TcpHost to ElasticsearchContainer #956

merged 1 commit into from
Nov 20, 2018

Conversation

reda-alaoui
Copy link
Contributor

@reda-alaoui reda-alaoui commented Nov 5, 2018

Applications have 2 ways to communicate with ElasticSearch:

  • via REST client
  • via transport client

ElasticsearchContainer currently only allows the usage of the REST client.

This allows the application to connect to the container via transport client.

Copy link
Contributor

@dadoonet dadoonet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left some minor comments.

@rnorth
Copy link
Member

rnorth commented Nov 5, 2018

Sorry, but please could you explain the purpose of this change?

@dadoonet
Copy link
Contributor

dadoonet commented Nov 5, 2018

The goal is to be able to use the Transport Layer as well. Although it's kind of deprecated it is widely used in the field.

That said, at least documentation should be updated to reflect this.

@reda-alaoui
Copy link
Contributor Author

I completed the documentation and added more details to the PR.

@reda-alaoui
Copy link
Contributor Author

reda-alaoui commented Nov 6, 2018

Please note circleci failure is probably not my fault :D

@reda-alaoui
Copy link
Contributor Author

Don't know what to conclude from circleci failure:

testNotFindingAValueThatWasNotInserted(RedisBackedCacheTest)  Time elapsed: 0.007 sec  <<< ERROR!
java.lang.IllegalStateException: Can not connect to Ryuk

@reda-alaoui
Copy link
Contributor Author

Merge conflict resolved.

@reda-alaoui
Copy link
Contributor Author

ping :)

@reda-alaoui
Copy link
Contributor Author

@rnorth , getTcpHost returns an InetSocketAddress now.

@rnorth
Copy link
Member

rnorth commented Nov 20, 2018

Super, thanks @reda-alaoui. I'll merge now.

@rnorth rnorth merged commit 48f2af7 into testcontainers:master Nov 20, 2018
@reda-alaoui reda-alaoui deleted the elastic-search-tcp-host branch November 20, 2018 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants