You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unknown setting [archived.opendistro.sql.cursor.enabled] error when upgrading #136
Is your feature request related to a problem? Please describe.
In SQL Plugin, the settings opendistro.sql.cursor.enable are deprecated and removed. We noticed that if those settings are configured before upgrade, they will be archived and seems block other cluster setting change after upgrade.
% curl localhost:9200/_cluster/settings?pretty
{
"persistent" : {
"archived" : {
"opendistro" : {
"sql" : {
"cursor" : {
"enabled" : "true",
"keep_alive" : "10m"
}
}
}
},
"cluster" : {
"routing" : {
"allocation" : {
"enable" : "primaries"
}
}
}
},
"transient" : { }
}
% curl -X PUT "localhost:9200/_cluster/settings" -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"unknown setting [archived.opendistro.sql.cursor.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}],"type":"illegal_argument_exception","reason":"unknown setting [archived.opendistro.sql.cursor.enabled] please check that any required plugins are installed, or check the breaking changes documentation for removed settings","suppressed":[{"type":"illegal_argument_exception","reason":"unknown setting [archived.opendistro.sql.cursor.keep_alive] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"}]},"status":400}
Describe the solution you'd like
The OpenSearch should have the clearly way to handle the setting deprecation.
Describe alternatives you've considered
The clealry defined check list for customer which defined which they should do before rolling upgrade.
Additional context
The PR which deprecated the opendistro.sql.cursor.enable in SQL plugin.
changed the title [-]Provide the mechanism for plugin to deprecated settings.[/-][+]unknown setting [archived.opendistro.sql.cursor.enabled] error when upgrading[/+]on Jun 23, 2021
I renamed the issue as we do provide a backward compatible way to do this in other plugins, I think this is a bug in the SQL plugin where the setting should have been deprecated and not removed
I renamed the issue as we do provide a backward compatible way to do this in other plugins, I think this is a bug in the SQL plugin where the setting should have been deprecated and not removed
One question, if we do want to remove the setting eventually, How could we do that? Does it means the customer to delete the archive settings during upgrade? The PR elastic/elasticsearch#28888 which archive the unknown and invalid settings. The PR callout that it allows the setting update to go through, and the archived settings can be removed at a later time.
Activity
dblock commentedon Jun 23, 2021
This looks broken, the setting should have been deprecated and not removed?
[-]Provide the mechanism for plugin to deprecated settings.[/-][+]unknown setting [archived.opendistro.sql.cursor.enabled] error when upgrading[/+]dblock commentedon Jun 23, 2021
I renamed the issue as we do provide a backward compatible way to do this in other plugins, I think this is a bug in the SQL plugin where the setting should have been deprecated and not removed
penghuo commentedon Jun 23, 2021
Yes, we will make it deprecated instead of removing.
penghuo commentedon Jun 23, 2021
Tasks
penghuo commentedon Jun 23, 2021
One question, if we do want to remove the setting eventually, How could we do that? Does it means the customer to delete the archive settings during upgrade? The PR elastic/elasticsearch#28888 which archive the unknown and invalid settings. The PR callout that it allows the setting update to go through, and the archived settings can be removed at a later time.