-
Notifications
You must be signed in to change notification settings - Fork 729
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
ruflin/elastica 6.x is not compatible with elasticsearch/elasticsearch-php 6.8.0 #1908
Comments
It looks to have disappeared in elastic/elasticsearch-php#966 in master... And in 2da5f9337a269113954a84fe8e79ea6843f0e7c3 in the 6.8 branch... |
I note a (simple) potential fix is just to set a max version constraint for I guess it depends what longer term support goals of ES 6.8 are... And how much (other) work might be needed to update things. |
Looks like it might just be a missing alias |
Is this only related to the Alias part or is there more? Do you know what it was removed? In general I assume Elastica is compatible with 6.8 just the Alias part causes troubles? Did not find the time to dig into this but would be good to understand why it was removed. |
Yeah. From what I can see (and mentioned on elastic/elasticsearch-php@2da5f93) it seems a few aliases went missing, I think that should be the only issue, but I can't swear to it.
I think it's accidental, based on @ezimuel's comments. I'm not sure how the aliases are generated, so whether it's an issue with whatever created them automatically, or just human error/oversight and they got missed. I'm guessing there might not be anything to do "here", certainly when upstream fix this and make a release. At most, maybe some documentation saying not to use that version (depending on semver versions/constraints used, most people would just end up upgrading semi-automatically anyway). |
elasticsearch/elasticsearch 6.8.0 was released missing some class aliases, so currently breaks expected semver compatibility. Therefore explicitly require elasticsearch/elasticsearch ~6.5.1 and ~6.7.2. 6.5.x supports ES >= 6.0, < 6.6; 6.5.4 is currently used in WMF prod. 6.7.x supports ES >= 6.6, < 7.0. This should be reverted when upstream bugs are fixed. Upstream tasks: * ruflin/Elastica#1908 * elastic/elasticsearch-php#1112 Bug: T276320 Bug: T276854 Change-Id: If00e4f871dbfa5572563f1eb5f60ded51f79a06b
* Update Elastica from branch 'REL1_35' to c101a4c17fff7e8711b0199cc9f7c342699e1221 - Explicitly set elasticsearch/elasticsearch dependency elasticsearch/elasticsearch 6.8.0 was released missing some class aliases, so currently breaks expected semver compatibility. Therefore explicitly require elasticsearch/elasticsearch ~6.5.1 and ~6.7.2. 6.5.x supports ES >= 6.0, < 6.6; 6.5.4 is currently used in WMF prod. 6.7.x supports ES >= 6.6, < 7.0. This should be reverted when upstream bugs are fixed. Upstream tasks: * ruflin/Elastica#1908 * elastic/elasticsearch-php#1112 Bug: T276320 Bug: T276854 Change-Id: If00e4f871dbfa5572563f1eb5f60ded51f79a06b
elasticsearch/elasticsearch 6.8.0 was released missing some class aliases, so currently breaks expected semver compatibility. Therefore explicitly require elasticsearch/elasticsearch ~6.5.1 and ~6.7.2. 6.5.x supports ES >= 6.0, < 6.6; 6.5.4 is currently used in WMF prod. 6.7.x supports ES >= 6.6, < 7.0. This should be reverted when upstream bugs are fixed. Upstream tasks: * ruflin/Elastica#1908 * elastic/elasticsearch-php#1112 Bug: T276320 Bug: T276854 Change-Id: If00e4f871dbfa5572563f1eb5f60ded51f79a06b
* Update Elastica from branch 'master' to f86b3eb3bbf06b12262be75fce23c876bfbb211e - Explicitly set elasticsearch/elasticsearch dependency elasticsearch/elasticsearch 6.8.0 was released missing some class aliases, so currently breaks expected semver compatibility. Therefore explicitly require elasticsearch/elasticsearch ~6.5.1 and ~6.7.2. 6.5.x supports ES >= 6.0, < 6.6; 6.5.4 is currently used in WMF prod. 6.7.x supports ES >= 6.6, < 7.0. This should be reverted when upstream bugs are fixed. Upstream tasks: * ruflin/Elastica#1908 * elastic/elasticsearch-php#1112 Bug: T276320 Bug: T276854 Change-Id: If00e4f871dbfa5572563f1eb5f60ded51f79a06b
@ruflin I released
To resolve these issues, I used an alias approach with Here a list of issues provided by @reedy (elastic/elasticsearch-php@2da5f93#commitcomment-47975845):
To summarize, the missing aliases are:
I can fix this and release |
getAliases() is gone, which was unexpected/breaking for us. It think this is an alias of getAlias() in 7 and was duplicate code in 6.x. |
@reedy I assume on our end we then wait on the new 6.8.1 release? |
Pretty much. This task probably mostly serves as documentation purposes, and potentially saves duplicate reports. Possibly the only resolution (or action) to be taken on this side is maybe some documentation (ie maybe a README entry to say not to use 6.8.0). With the relatively loose semver constraints, people who ended up on 6.8 (accidentally or otherwise) should just need another |
I just sent this PR to fix the issue elastic/elasticsearch-php#1114. |
I forgot about conflicts :) |
Closing as conflict for |
I just released |
Thank you @ezimuel |
Downstream task: https://phabricator.wikimedia.org/T276320
6.x of ruflin/elastica as per https://github.com/ruflin/Elastica/blob/6.x/composer.json#L17 supports
"elasticsearch/elasticsearch": "^6.0"
However, trying to use 6.x of ruflin/elastica with 6.8 of elasticsearch/elasticsearch causes errors due to https://github.com/ruflin/Elastica/blob/6.x/lib/Elastica/Index.php#L451
If we look at https://github.com/elastic/elasticsearch-php/blob/6.7.x/src/Elasticsearch/Endpoints/Indices/Aliases/Update.php it still exists in 6.7, but in https://github.com/elastic/elasticsearch-php/blob/6.8.x/src/Elasticsearch/Endpoints/Indices/Aliases/Update.php it does not.
The text was updated successfully, but these errors were encountered: