-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[BUG] Cluster goes down after upgrade to 2.1.0 (and then to 2.2.0) #4203
Comments
Hey @pietrogu, what is |
I use some custom created plugins that leverage on the enrich plugin (developed in order to respect the license) |
@pietrogu What version are you upgrading from? Where's the code for We could restore |
I upgraded from 2.0.1 to 2.1.0 Honestly, I don't know this details about the EnrichPolicyMaintenanceService location :( |
@tlfeng should we restore that interface in 2.x? |
@dblock There was a deprecation made in issue #3542, the idea is to keep all backwards compatibility of the existing Java APIs, including |
@pietrogu We can restore compatibility in 2.x, but this will break in 3.0 when we will fully remove the non-inclusive language from the code base, so you will have to update EnrichPolicyMaintenanceService eventually (though the "fix" should be a super simple find-and-replace). |
|
I realized the backwards compatibility of class OpenSearch/server/src/main/java/org/opensearch/action/admin/indices/get/GetIndexRequest.java Line 48 in 551f7c3
indices(java.lang.String[]) is not org.opensearch.action.support.master.info.ClusterInfoRequest any more.The root cause for the problem is in the commit c0bf235, I changed the class GetIndexRequest to extend org.opensearch.action.support.clustermanager.info.ClusterInfoRequest from org.opensearch.action.support.master.info.ClusterInfoRequest .On the other side, the class ClusterInfoRequest in package org.opensearch.action.support.master.info was changed to extend the same-name class in package org.opensearch.action.support.clustermanager.info , see the code OpenSearch/server/src/main/java/org/opensearch/action/support/master/info/ClusterInfoRequest.java Line 44 in 9d312d3
I plan to restore the inheritance relationship of the class GetIndexRequest , to extend org.opensearch.action.support.master.info.ClusterInfoRequest , and double check all the other similar situation of subclasses of the newly renamed classes.
|
Hi all, thank you for the quick reply :) So, If I understood well, after @tlfeng fixes the problem, the issue should be resolved for now, but some changes need to be done on my side in my custom plugin before the 3.0 release? |
Yes, these methods are deprecated in 2.x (2.x branch here). and will be removed in 3.0 (main branch here). Queue up work on the custom plugin to make it compatible with 3.0 by using the replacement methods. You can do this against 2.x that will have the fix and will be GA much earlier, and ensure that no deprecated methods are being called. |
Ok. I'll wait for the fix by @tlfeng to close the issue. Thank you |
Hi @pietrogu I have made a fix for the backwards compatibility issue you pointed out. The fix have been merged into |
Describe the bug
After upgrading my three nodes Docker cluster to version 2.1.0, the nodes started to go down with the following error:
I then updated to 2.2.0 and the same error happened
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The cluster should not go down
Host/Environment (please complete the following information):
Docker Cluster with version 2.2.0
(First time error raised was on version 2.1.0)
The text was updated successfully, but these errors were encountered: