@@ -204,11 +204,6 @@ public class GroupCoordinatorConfig {
204
204
public static final String OFFSET_COMMIT_TIMEOUT_MS_DOC = "Offset commit will be delayed until all replicas for the offsets topic receive the commit " +
205
205
"or this timeout is reached. This is similar to the producer request timeout." ;
206
206
207
- @ Deprecated
208
- public static final String OFFSET_COMMIT_REQUIRED_ACKS_CONFIG = "offsets.commit.required.acks" ;
209
- public static final short OFFSET_COMMIT_REQUIRED_ACKS_DEFAULT = -1 ;
210
- public static final String OFFSET_COMMIT_REQUIRED_ACKS_DOC = "DEPRECATED: The required acks before the commit can be accepted. In general, the default (-1) should not be overridden." ;
211
-
212
207
public static final ConfigDef GROUP_COORDINATOR_CONFIG_DEF = new ConfigDef ()
213
208
.define (GROUP_MIN_SESSION_TIMEOUT_MS_CONFIG , INT , GROUP_MIN_SESSION_TIMEOUT_MS_DEFAULT , MEDIUM , GROUP_MIN_SESSION_TIMEOUT_MS_DOC )
214
209
.define (GROUP_MAX_SESSION_TIMEOUT_MS_CONFIG , INT , GROUP_MAX_SESSION_TIMEOUT_MS_DEFAULT , MEDIUM , GROUP_MAX_SESSION_TIMEOUT_MS_DOC )
@@ -232,8 +227,7 @@ public class GroupCoordinatorConfig {
232
227
.define (OFFSETS_TOPIC_COMPRESSION_CODEC_CONFIG , INT , (int ) OFFSETS_TOPIC_COMPRESSION_CODEC_DEFAULT .id , HIGH , OFFSETS_TOPIC_COMPRESSION_CODEC_DOC )
233
228
.define (OFFSETS_RETENTION_MINUTES_CONFIG , INT , OFFSETS_RETENTION_MINUTES_DEFAULT , atLeast (1 ), HIGH , OFFSETS_RETENTION_MINUTES_DOC )
234
229
.define (OFFSETS_RETENTION_CHECK_INTERVAL_MS_CONFIG , LONG , OFFSETS_RETENTION_CHECK_INTERVAL_MS_DEFAULT , atLeast (1 ), HIGH , OFFSETS_RETENTION_CHECK_INTERVAL_MS_DOC )
235
- .define (OFFSET_COMMIT_TIMEOUT_MS_CONFIG , INT , OFFSET_COMMIT_TIMEOUT_MS_DEFAULT , atLeast (1 ), HIGH , OFFSET_COMMIT_TIMEOUT_MS_DOC )
236
- .define (OFFSET_COMMIT_REQUIRED_ACKS_CONFIG , SHORT , OFFSET_COMMIT_REQUIRED_ACKS_DEFAULT , HIGH , OFFSET_COMMIT_REQUIRED_ACKS_DOC );
230
+ .define (OFFSET_COMMIT_TIMEOUT_MS_CONFIG , INT , OFFSET_COMMIT_TIMEOUT_MS_DEFAULT , atLeast (1 ), HIGH , OFFSET_COMMIT_TIMEOUT_MS_DOC );
237
231
public static final ConfigDef CONSUMER_GROUP_CONFIG_DEF = new ConfigDef ()
238
232
.define (CONSUMER_GROUP_SESSION_TIMEOUT_MS_CONFIG , INT , CONSUMER_GROUP_SESSION_TIMEOUT_MS_DEFAULT , atLeast (1 ), MEDIUM , CONSUMER_GROUP_SESSION_TIMEOUT_MS_DOC )
239
233
.define (CONSUMER_GROUP_MIN_SESSION_TIMEOUT_MS_CONFIG , INT , CONSUMER_GROUP_MIN_SESSION_TIMEOUT_MS_DEFAULT , atLeast (1 ), MEDIUM , CONSUMER_GROUP_MIN_SESSION_TIMEOUT_MS_DOC )
@@ -278,7 +272,6 @@ public class GroupCoordinatorConfig {
278
272
private final int offsetsLoadBufferSize ;
279
273
private final int offsetsTopicPartitions ;
280
274
private final short offsetsTopicReplicationFactor ;
281
- private final short offsetCommitRequiredAcks ;
282
275
private final int consumerGroupMinSessionTimeoutMs ;
283
276
private final int consumerGroupMaxSessionTimeoutMs ;
284
277
private final int consumerGroupMinHeartbeatIntervalMs ;
@@ -317,7 +310,6 @@ public GroupCoordinatorConfig(AbstractConfig config) {
317
310
this .offsetsLoadBufferSize = config .getInt (GroupCoordinatorConfig .OFFSETS_LOAD_BUFFER_SIZE_CONFIG );
318
311
this .offsetsTopicPartitions = config .getInt (GroupCoordinatorConfig .OFFSETS_TOPIC_PARTITIONS_CONFIG );
319
312
this .offsetsTopicReplicationFactor = config .getShort (GroupCoordinatorConfig .OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG );
320
- this .offsetCommitRequiredAcks = config .getShort (GroupCoordinatorConfig .OFFSET_COMMIT_REQUIRED_ACKS_CONFIG );
321
313
this .consumerGroupMinSessionTimeoutMs = config .getInt (GroupCoordinatorConfig .CONSUMER_GROUP_MIN_SESSION_TIMEOUT_MS_CONFIG );
322
314
this .consumerGroupMaxSessionTimeoutMs = config .getInt (GroupCoordinatorConfig .CONSUMER_GROUP_MAX_SESSION_TIMEOUT_MS_CONFIG );
323
315
this .consumerGroupMinHeartbeatIntervalMs = config .getInt (GroupCoordinatorConfig .CONSUMER_GROUP_MIN_HEARTBEAT_INTERVAL_MS_CONFIG );
@@ -331,9 +323,6 @@ public GroupCoordinatorConfig(AbstractConfig config) {
331
323
this .shareGroupMaxHeartbeatIntervalMs = config .getInt (GroupCoordinatorConfig .SHARE_GROUP_MAX_HEARTBEAT_INTERVAL_MS_CONFIG );
332
324
this .shareGroupMaxSize = config .getInt (GroupCoordinatorConfig .SHARE_GROUP_MAX_SIZE_CONFIG );
333
325
334
- require (offsetCommitRequiredAcks >= -1 && offsetCommitRequiredAcks <= offsetsTopicReplicationFactor ,
335
- String .format ("%s must be greater or equal to -1 and less or equal to %s" , OFFSET_COMMIT_REQUIRED_ACKS_CONFIG , OFFSETS_TOPIC_REPLICATION_FACTOR_CONFIG ));
336
-
337
326
// New group coordinator configs validation.
338
327
require (consumerGroupMaxHeartbeatIntervalMs >= consumerGroupMinHeartbeatIntervalMs ,
339
328
String .format ("%s must be greater than or equals to %s" , CONSUMER_GROUP_MAX_HEARTBEAT_INTERVAL_MS_CONFIG , CONSUMER_GROUP_MIN_HEARTBEAT_INTERVAL_MS_CONFIG ));
@@ -543,15 +532,6 @@ public short offsetsTopicReplicationFactor() {
543
532
return offsetsTopicReplicationFactor ;
544
533
}
545
534
546
- /**
547
- * DEPRECATED: The required acks before the commit can be accepted.
548
- * In general, the default (-1) should not be overridden.
549
- */
550
- @ Deprecated // since 3.8
551
- public short offsetCommitRequiredAcks () {
552
- return offsetCommitRequiredAcks ;
553
- }
554
-
555
535
/**
556
536
* The minimum allowed session timeout for registered consumers.
557
537
*/
0 commit comments