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

Upgrade of Elastic Search Client #571

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Upgrade of Elastic Search Client #571

wants to merge 1 commit into from

Conversation

vineetvermait
Copy link

Upgrade from:

  • ElasticSearch 1.4.x - 1.7.x

To

  • ElasticSearch 5.4.x

@vineetvermait
Copy link
Author

Issue filed in JIRA: USERGRID-1344

@snoopdave
Copy link
Contributor

Thanks for the PR.

There is a large amount of formatting changes in the PR that makes it difficult to see what has changed. Please submit a clean PR that contains only the changes you wish to make and makes no formatting changes. Also, new code should follow the existing code style of Usergrid which uses spaces for indentation and no tabs.

@vineetvermait vineetvermait reopened this Jun 14, 2017
@vineetvermait
Copy link
Author

vineetvermait commented Jun 14, 2017

@snoopdave , As requested, removed the code formatting. Added just the updated code

@snoopdave
Copy link
Contributor

Thanks Vineet, this PR looks much better. A better description of this PR would be "Update the Chop testing framework from ElasticSearch 1.4.x/1.7.x to ElasticSearch 5.4.x" because this PR does not upgrade Usergrid itself to the new ElasticSearch -- just the Chop testing framework.

(I wonder how much work it would be to upgrade Usegrid itself to ES 5.4.x)

I think we should accept this PR. Any thoughts @michaelarusso and @mikedunker-apigee?

@michaelarusso
Copy link
Member

I'm not as familiar with the Chop testing framework. However, I can't see how it's beneficial to add 5.4.x Elasticsearch dependencies to the testing framework when Usergrid itself is not updated to support anything newer than 1.x of Elasticsearch.

In terms of effort to add support for later versions of Elasticsearch, I imagine this to be a big effort. There will be breaking changes, maybe many, between 1.x and 5.x versions of Elasticsearch. The approach has to be thought through very carefully, otherwise existing users of Usergrid will be left in an awkward situation when trying to upgrade. New users might be fine, but the breaking changes in the cluster for existing users may just support a major version bump in Usergrid itself.

@snoopdave
Copy link
Contributor

Since the Usergrid project does not use Chop, changes to Chop don't impact Usergrid -- Chop is a separate project that probably shouldn't even be part of the Usergrid codebase since it results in confusion.

If Vineet is using Chop separately from Usergrid, perhaps these changes make sense to him -- and maybe we should accept them.

If the intention of this PR was to upgrade Usergrid to ES 5.x, then that is not what it does -- and we should not accept the changes.

@michaelarusso
Copy link
Member

@snoopdave Thanks for the clarification. Given that Chop is separate, do you think it makes sense to create another repo, usergrid-chop, and move the code over post-merge?

@vineetvermait
Copy link
Author

@snoopdave @michaelarusso I would like to know if chop is the only component which uses Elastic Search and if elastic search is even one of the core components of User-grid or not?

I had made the changes because while installing User-Grid, I used the latest Elastic Search version and got client issues in the logs. I updated the Client and tested and it works perfectly fine now.

Therefore for User Grid to work with latest version of Elastic Search the changes are needed.

Arranging Chop in a separate repository is another call.

Please suggest

@vineetvermait
Copy link
Author

Hi @snoopdave, is the pull request being taken up..?

@snoopdave
Copy link
Contributor

This pull request does not upgrade Usergrid to use ES 5.4.x, it only upgrades the completely separate Chop testing framework that is not part of Usergrid and is not used by Usergrid -- so I don't think we need it.

If you want to upgrade Usergrid, you need to change the stack/corepersistence/queryindex module, that is how Usergrid interfaces with ES.

@vineetvermait
Copy link
Author

Hi @snoopdave,

Would like to confirm, if we can deploy User grid current version with Elastic Search 5.4.x and run smoothly.

Please confirm

@snoopdave
Copy link
Contributor

snoopdave commented Jun 27, 2017 via email

@vineetvermait
Copy link
Author

Hi @snoopdave i tried that and faced a lot of issues...
the system showed compatibility issues in logs mentioning in API response about version incompatibility.

Thus my reason to create this pull request

@vineetvermait
Copy link
Author

Hi @snoopdave any update?

@vineetvermait
Copy link
Author

Hi @snoopdave, Please confirm if the PR is going to be merged..??

@snoopdave
Copy link
Contributor

I do not intended to merge this code. I don't think it makes sense to upgrade the Chop testing framework to ES 5 when Usergrid itself only supports ES 1.

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