From a500ba752e44a77b40247cd11a1c3b0572a23d08 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sat, 11 Jan 2014 02:05:12 +0100 Subject: [PATCH] REST Update Settings API should not take timeout and master_timeout as index parameters closes #4692 --- .../action/admin/indices/settings/RestUpdateSettingsAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestUpdateSettingsAction.java b/src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestUpdateSettingsAction.java index 84c00673dac..e3fcfd102dc 100644 --- a/src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestUpdateSettingsAction.java +++ b/src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestUpdateSettingsAction.java @@ -80,7 +80,7 @@ public class RestUpdateSettingsAction extends BaseRestHandler { } } for (Map.Entry entry : request.params().entrySet()) { - if (entry.getKey().equals("pretty")) { + if (entry.getKey().equals("pretty") || entry.getKey().equals("timeout") || entry.getKey().equals("master_timeout")) { continue; } updateSettings.put(entry.getKey(), entry.getValue());