Skip to content

Commit e48d747

Browse files
Emit deprecation warning for variable size predictor
With this commit we mark the following settings as deprecated: * http.netty.receive_predictor_min * http.netty.receive_predictor_max The settings infrastructure then emits a deprecation warning upon startup if these settings are configured. Relates #26165
1 parent f39a50b commit e48d747

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/transport-netty4/src/main/java/org/elasticsearch/http/netty4/Netty4HttpServerTransport.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,16 @@ public class Netty4HttpServerTransport extends AbstractLifecycleComponent implem
138138
*/
139139
@Deprecated
140140
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MIN =
141-
byteSizeSetting("http.netty.receive_predictor_min", SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE, Property.NodeScope);
141+
byteSizeSetting("http.netty.receive_predictor_min", SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE,
142+
Property.NodeScope, Property.Deprecated);
142143

143144
/**
144145
* @deprecated This (undocumented) setting is deprecated to reduce complexity and is removed in 7.0. See #26165 for details.
145146
*/
146147
@Deprecated
147148
public static final Setting<ByteSizeValue> SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_MAX =
148-
byteSizeSetting("http.netty.receive_predictor_max", SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE, Property.NodeScope);
149+
byteSizeSetting("http.netty.receive_predictor_max", SETTING_HTTP_NETTY_RECEIVE_PREDICTOR_SIZE,
150+
Property.NodeScope, Property.Deprecated);
149151

150152

151153
protected final NetworkService networkService;

0 commit comments

Comments
 (0)