Skip to content
This repository has been archived by the owner on Jun 29, 2021. It is now read-only.

Upgrade Elasticsearch dependency from 1.5.0 to 5.6.3 #177

Closed

Conversation

arjansh
Copy link
Contributor

@arjansh arjansh commented Jan 24, 2018

Biggest changes:

  • Node client is no longer supported. If you want to connect as a node client, you can "Start locally a Coordinating Only Node and then simply create a TransportClient in your application which connects to this Coordinating Only Node."
  • Elasticsearch no longer supports the removal of Mappings from indices and existing type and field mappings can no longer be updated. As a result of this, we can no longer support drop table functionality in MetaModel.
  • The io.searchbox jest client has been replaced by Elasticsearch's High level rest client. As a result of which the complete module has been rewritten and some code could be moved to the common module, because it now is the same in both the native and rest client modules.
  • The EmbeddedElasticSearchServer has been removed from the test classes, because it is no longer possible to spawn a node in that manner. For the native client, it has been replaced by an Elasticsearch provided test server and client by extending the ESSingleNodeTestCase class, within the Rest client we now spawn a Docker image which runs an Elasticsearch cluster.

ClaudiaPHI and others added 30 commits December 1, 2017 21:07
… clients to common module and reinstated bulk requests for rest client.
@kaspersorensen
Copy link
Contributor

You may want to update the title of the PR to be "Upgrade ElasticSearch ..." instead of "Upgrade MetaModel ..." :-) It's a pretty big diff, so I'm gonna check it out locally and provide some feedback shortly.

Copy link
Contributor

@kaspersorensen kaspersorensen left a comment

Choose a reason for hiding this comment

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

I generally like what I'm seeing here. It even makes me think that we should maybe just drop support entirely for the "native" module (now effectively the "transport protocol" module) entirely. But I guess that there's still a bit of value in keeping that.


public static final TimeValue TIMEOUT_SCROLL = TimeValue.timeValueSeconds(60);

protected final Object elasticSearchClient;
Copy link
Contributor

Choose a reason for hiding this comment

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

There doesn't seem to be any reason to keep this in the abstract class any more, since the Object type removes any kind of possibility of reusing it. It's used differently in the two subtypes, so I suggest they each just have a field for the client object with a type that they need.

<ES_JAVA_OPTS>-Xms1g -Xmx1g</ES_JAVA_OPTS>
<cluster.name>docker-cluster</cluster.name>
<bootstrap.memory_lock>true</bootstrap.memory_lock>
<xpack.security.enabled>false</xpack.security.enabled>
Copy link
Contributor

Choose a reason for hiding this comment

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

indentation issues here.

<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.15.16</version>
Copy link
Contributor

Choose a reason for hiding this comment

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

It's a fairly old version of this plugin that you're using here. Maybe we should (1) use the latest just because Docker things like this seems to move fast and (2) add it's version to in the root pom.

@arjansh arjansh changed the title Upgrade MetaModel dependency from 1.5.0 to 5.6.3 Upgrade Elasticsearch dependency from 1.5.0 to 5.6.3 Jan 25, 2018
@arjansh
Copy link
Contributor Author

arjansh commented Jan 25, 2018

I suggest we do a release candidate after this PR has been merged.

@asfgit asfgit closed this in bda8d76 Jan 26, 2018
@arjansh arjansh deleted the feature/update-elastic-search-to-5.6.3 branch June 21, 2019 10:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants