Relates to spring-cloud/spring-cloud-stream#913
Fixes#162
- configure an ErrorMessageSendingRecoverer to send errors to an error channel, whether or not retry is enabled.
Change Test Binder to use a Fully Wired Integration Context
- logging handler subscribed to errorChannel
Rebase; revert s-k to 1.1.x, Kafka to 0.10.1.1
Remove dependency overrides.
- This change will allow consumer's group.id to be overridden from possible options (Spring Boot Kafka properties, binder configuration properties etc.,)
Resolves#149
Fix#152
Metrics should be divided by group ID of the binding.
TopicInformation should carry optional group of the consumer.
Improved tests coverage.
Added lag metric documentation.
Move set of ConsumerConfig.AUTO_OFFSET_RESET_CONFIG based to before setting of custom kafka properties. This allows users to override this behavior via spring.cloud.stream.kafka.binder.configuration
Updated fix to also allow the spring.cloud.stream.kafka.bindings.<channel>.consumer.startOffset value to override the anonymous-consumer-based value if set
Moved setting of auto.offset.reset based on binder configuration below setting of kafka properties so that it has higher preceence.
Trailing Spaces
Confluent repository needed for tests is moved to spring-cloud-stream-binder-kafka-test-support
Following dependencies are moved to spring-cloud-stream-binder-kafka-test-support
*spring-cloud-stream-schema
*kafka-avro-serializer
*kafka-schema-registry
spring-cloud-stream-binder-kafka-test-support is brought into spring-cloud-stream-binder-kafka only in test scope
Fixes#121
Kafka binder test modules restructuring
New module for kafka - 0.10.1.1 integration tests
0.10.0.1 tests extend from 0.10.1.1 base class for tests
Removing the empty spring-cloud-stream-binder-kafka-test-support module
Remove the inner interface and classes for UnexpectedPartitionCountHandling
Directly use auto rebalancing flag to control consumer idling
Resolves#135
Adding tests for auto-rebalancing enabled/disabled and under partitioned scenario
correct the logging message for idle consumers
- This is especially applicable to `group.id` and `auto.offset.reset` which get set when configuring the consumer properties
- Spring Boot Kafka properties are updated as binder configuration properties which get the least precedence
- Update test
Resolves#122
- Make it configurable as a Kafka consumer properties
- Add test to verify the configuration
- Update doc
Resolves#108
Test fix to use the same partition count for producer/dlq
Fix KafkaTopicProvisioner in case of configurable dlq topic name
- Update test
- If KafkaProperties is available from KafkaAutoConfiguration, retrieve the kafka properties and set as `KafkaBinderConfigurationProperties`' configuration property.
This way, these properties are available at the top level and per-binding properties could still override when setting producer/consumer properties during binding operation
- Add tests to verify the scenarios
Resolves#73
Fix deprecation warning
Remove unused constant
Polishing
Fix#102
We've removed it in favour of using `spring-kafka-test`
directly but that is somewhat inconvenient to the end
user. Also, it's still part of the release train BOM
so it's an oversight on our end.
- make destination inner classes `static` since they have no dependence on the outer class
- make ctors package-protected - private ctors for inner classes cause the compiler to
generate a synthetic ctor with an additional synthetic parameter