Skip to content

Commit e56f757

Browse files
committed
REST Update Settings API should not take timeout and master_timeout as index parameters
closes elastic#4692
1 parent cfb04bd commit e56f757

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/rest/action/admin/indices/settings/RestUpdateSettingsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void handleRequest(final RestRequest request, final RestChannel channel)
7878
}
7979
}
8080
for (Map.Entry<String, String> entry : request.params().entrySet()) {
81-
if (entry.getKey().equals("pretty")) {
81+
if (entry.getKey().equals("pretty") || entry.getKey().equals("timeout") || entry.getKey().equals("master_timeout")) {
8282
continue;
8383
}
8484
updateSettings.put(entry.getKey(), entry.getValue());

0 commit comments

Comments
 (0)