Skip to content
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

[Deprecation] Deprecate master_timeout in favor of cluster_manager_timeout #1788

Merged
merged 1 commit into from
Jun 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": "",
"wait_for_active_shards": "",
"wait_for_nodes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@
"type":"time",
"description":"Explicit operation timeout for connection to master node"
},
"cluster_manager_timeout":{
"type":"time",
"description":"Explicit operation timeout for connection to cluster manager node"
},
"timeout":{
"type":"time",
"description":"Explicit operation timeout"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bytes": [
"b",
"k",
"osd",
Copy link
Member

@kavilla kavilla Jun 23, 2022

Choose a reason for hiding this comment

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

Ha, whoopsie this happened in our renaming when we turned kb to osd

"kb",
Copy link
Member

Choose a reason for hiding this comment

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

My guess is that these are regressions? Naively, I'd think osd is the correct value.

Copy link
Member Author

Choose a reason for hiding this comment

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

This got replaced on running the spec generation script with latest OpenSearch "main" branch. Is there a way I can verify the correct value?

Copy link
Member

Choose a reason for hiding this comment

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

kb is the right value. When we forked and did renaming we just went ahead and just renamed a lot of references. This kb is related to bytes so it we seem we had an existing bug.

"m",
"mb",
"g",
Expand All @@ -17,6 +17,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bytes": [
"b",
"k",
"osd",
"kb",
"m",
"mb",
"g",
Expand All @@ -17,6 +17,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"health": [
"green",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"bytes": [
"b",
"k",
"osd",
"kb",
"m",
"mb",
"g",
Expand All @@ -18,6 +18,7 @@
"full_id": "__flag__",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bytes": [
"b",
"k",
"osd",
"kb",
"m",
"mb",
"g",
Expand All @@ -17,6 +17,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"ignore_unavailable": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"format": "",
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"h": [],
"help": "__flag__",
"s": [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"cluster.delete_component_template": {
"url_params": {
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"DELETE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"url_params": {
"flat_settings": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": "",
"include_defaults": "__flag__"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
],
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": "",
"wait_for_active_shards": "",
"wait_for_nodes": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"cluster.pending_tasks": {
"url_params": {
"local": "__flag__",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"url_params": {
"flat_settings": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": ""
},
"methods": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"retry_failed": "__flag__",
"metric": [],
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": ""
},
"methods": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"url_params": {
"local": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"flat_settings": "__flag__",
"wait_for_metadata_version": "",
"wait_for_timeout": "",
Expand All @@ -28,8 +29,8 @@
"metrics": [
"_all",
"blocks",
"master_node",
"cluster_manager_node",
"master_node",
"metadata",
"nodes",
"routing_nodes",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"delete_script": {
"url_params": {
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"DELETE"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"get_script": {
"url_params": {
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"url_params": {
"timeout": "",
"master_timeout": "",
"cluster_manager_timeout": "",
"wait_for_active_shards": ""
},
"methods": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"url_params": {
"timeout": "",
"master_timeout": "",
"cluster_manager_timeout": "",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"indices.create": {
"url_params": {
"include_type_name": "__flag__",
Copy link
Member

Choose a reason for hiding this comment

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

this change may be fine, but seems unrelated to the other changes.

"wait_for_active_shards": "",
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"PUT"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"indices.delete_alias": {
"url_params": {
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"DELETE"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"indices.delete_template": {
"url_params": {
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"DELETE"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"indices.get": {
"url_params": {
"include_type_name": "__flag__",
"local": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
Expand All @@ -14,7 +13,8 @@
],
"flat_settings": "__flag__",
"include_defaults": "__flag__",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"GET"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"indices.get_mapping": {
"url_params": {
"include_type_name": "__flag__",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
Expand All @@ -12,16 +11,15 @@
"all"
],
"master_timeout": "",
"cluster_manager_timeout": "",
"local": "__flag__"
},
"methods": [
"GET"
],
"patterns": [
"_mapping",
"{indices}/_mapping",
"_mapping/{type}",
"{indices}/_mapping/{type}"
"{indices}/_mapping"
],
"documentation": "https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/indices-get-mapping.html"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"indices.get_settings": {
"url_params": {
"master_timeout": "",
"cluster_manager_timeout": "",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"indices.get_template": {
"url_params": {
"include_type_name": "__flag__",
"flat_settings": "__flag__",
"master_timeout": "",
"cluster_manager_timeout": "",
"local": "__flag__"
},
"methods": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"indices.put_alias": {
"url_params": {
"timeout": "",
"master_timeout": ""
"master_timeout": "",
"cluster_manager_timeout": ""
},
"methods": [
"PUT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"indices.put_mapping": {
"url_params": {
"include_type_name": "__flag__",
"timeout": "",
"master_timeout": "",
"cluster_manager_timeout": "",
"ignore_unavailable": "__flag__",
"allow_no_indices": "__flag__",
"expand_wildcards": [
Expand All @@ -12,21 +12,15 @@
"hidden",
"none",
"all"
]
],
"write_index_only": "__flag__"
},
"methods": [
"PUT",
"POST"
],
"patterns": [
"{indices}/_mapping",
"{indices}/{type}/_mapping",
"{indices}/_mapping/{type}",
"{indices}/{type}/_mappings",
"{indices}/_mappings/{type}",
"_mappings/{type}",
"{indices}/_mappings",
"_mapping/{type}"
"{indices}/_mapping"
],
"documentation": "https://opensearch.org/docs/latest/guide/en/elasticsearch/reference/master/indices-put-mapping.html"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"indices.put_settings": {
"url_params": {
"master_timeout": "",
"cluster_manager_timeout": "",
"timeout": "",
"preserve_existing": "__flag__",
"ignore_unavailable": "__flag__",
Expand Down
Loading