Skip to content

v4.2.0

Choose a tag to compare

@spring-builds spring-builds released this 19 Nov 22:08

⭐ New Features

  • Preserve leader epochs in container-managed offset commits #4902
  • Handling RENEW ack type in EXPLICIT ack mode in Share consumers #4381
  • Add Sample for KIP-932 Support #4310

🐞 Bug Fixes

  • CVE-2026-59401: Restrict java.lang.Class in header type mapping #4969
  • CVE-2026-59399: Use only configured delegates in DelegatingDeserializer #4967
  • CVE-2026-59406: Restrict allocating types in header type mapping #4965
  • CVE-2026-59432: Restrict deeply nested and Timer header types #4963
  • Share consumer MANUAL ack mode: renewed record is redelivered to the listener and its final acknowledgment fails #4935
  • Honor maxRetries when the back off has a jitter #4918
  • Recreate idempotent non-transactional producer after InvalidPidMappingException #4907
  • GH-4900: Allow enforceRebalance() before container start #4900
  • Report a missing selector header for any type #4898
  • Skip sleep for non-positive back off intervals #4897
  • Verify DLT partition in batch recovery #4891
  • Seek a batch nack(index) from the records the listener received #4884
  • Keep partition pause requests across ConcurrentMessageListenerContainer start #4883
  • Async acks: pending ack is dropped when the error handler resubmits retained records #4879
  • Container stays running without partitions when group.instance.id is still in use #4874
  • getCurrentKafkaStreamsApplicationHostInfo() fails for an IPv6 application.server #4871
  • List<Message<?>> return type is not recognized without @SendTo #4859
  • Async listener stops receiving records after an interceptor skips one #4842

📔 Documentation

  • Replace Spring Retry types in the back off docs #4899

🔨 Dependency Upgrades

  • Upgrade micrometer-tracing to 1.8.0 #4960
  • Upgrade micrometer to 1.18.0 #4958
  • Upgrade reactor to 2026.0.0 #4956
  • Upgrade spring-data-bom to 2026.1.0 #4953
  • Upgrade spring-framework to 7.1.0 #4951
  • Bump gradle-wrapper from 9.9.0 to 9.9.1 #4937
  • Bump io.micrometer:micrometer-tracing-bom from 1.8.0-RC1 to 1.8.0-RC2 #4929
  • Bump com.fasterxml.jackson:jackson-bom from 2.22.4 to 2.23.0 #4928
  • Bump gradle-wrapper from 9.8.2 to 9.9.0 #4927
  • Bump tools.jackson:jackson-bom from 3.2.3 to 3.2.4 #4869
  • Bump com.fasterxml.jackson:jackson-bom from 2.22.3 to 2.22.4 #4867
  • Bump gradle-wrapper from 9.8.1 to 9.8.2 #4865

❤️ Contributors

Thank you to all the contributors who worked on this release:

@LindseyZ1205, @beyondwin, @chuuminggg, @dongmin132, @sharanggupta, and @wn1331