Skip to content
Open
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 @@ -110,7 +110,7 @@ public class KafkaBinderConfigurationProperties {

private boolean considerDownWhenAnyPartitionHasNoLeader = true;

private String requiredAcks = "1";
private String requiredAcks = "all";

private short replicationFactor = -1;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@

class KafkaBinderConfigurationPropertiesTest {

@Test
@SuppressWarnings("unchecked")
void defaultRequiredAcksIsAll() {
KafkaProperties kafkaProperties = new KafkaProperties();
KafkaBinderConfigurationProperties kafkaBinderConfigurationProperties =
new KafkaBinderConfigurationProperties(kafkaProperties, mock(ObjectProvider.class));

assertThat(kafkaBinderConfigurationProperties.getRequiredAcks()).isEqualTo("all");
}

@Test
@SuppressWarnings("unchecked")
void mergedConsumerConfigurationFiltersGroupIdFromKafkaProperties() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ spring.cloud.stream.kafka.binder.requiredAcks::
The number of required acks on the broker.
See the Kafka documentation for the producer `acks` property.
+
Default: `1`.
Default: `all`.
spring.cloud.stream.kafka.binder.minPartitionCount::
Effective only if `autoCreateTopics` or `autoAddPartitions` is set.
The global minimum number of partitions that the binder configures on topics on which it produces or consumes data.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/kafka/kafka_overview.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ spring.cloud.stream.kafka.binder.requiredAcks::
The number of required acks on the broker.
See the Kafka documentation for the producer `acks` property.
+
Default: `1`.
Default: `all`.
spring.cloud.stream.kafka.binder.minPartitionCount::
Effective only if `autoCreateTopics` or `autoAddPartitions` is set.
The global minimum number of partitions that the binder configures on topics on which it produces or consumes data.
Expand Down