RepoJournal
Spring

@spring-projects

Spring Framework, Spring Boot, and the JVM enterprise layer

Pick a date

Topics: Java Full archive →

The Wire · Showcase

SPRING-AI FIXES SILENT DATA LOSS IN BATCH EMBEDDING STRATEGY

By RepoJournal · Filed · About Spring

A critical bug in TokenCountBatchingStrategy was dropping duplicate documents during batch processing, silently returning fewer embeddings than requested.

Spring AI shipped a fix [1] for TokenCountBatchingStrategy that was collapsing identical documents into a single map entry, causing silent data loss when processing chunks from content-based ID generators. This surfaces as a misleading failure where the provider returns fewer embeddings than documents were passed in. Across the dependency stack, Spring Kafka quietly retired 3.3.x from its maintenance matrix [2], marking the branch as read-only since it's no longer open source. The ecosystem is synchronizing on patch versions: Jackson dependencies are rolling forward across both Spring Integration [3] and Spring Kafka [4][5], while gRPC [6] reverted a connection reuse optimization that was causing problems in xds-heavy deployments with many targets. Spring Kafka also absorbed updates to Hibernate Validator [8] and Log4j [7], with the latter improving error handling for LinkageError scenarios.

Action items

References

  1. [1] Fix `TokenCountBatchingStrategy` dropping equal documents spring-projects/spring-ai
  2. [2] Remove 3.3.x from dependabot.yml spring-projects/spring-kafka
  3. [3] Bump com.fasterxml.jackson:jackson-bom from 2.22.0 to 2.22.1 ↗ spring-projects/spring-integration
  4. [4] Bump com.fasterxml.jackson:jackson-bom from 2.21.4 to 2.21.5 ↗ spring-projects/spring-kafka
  5. [5] Bump tools.jackson:jackson-bom from 3.1.4 to 3.1.5 ↗ spring-projects/spring-kafka
  6. [6] Bump io.grpc:grpc-bom from 1.81.0 to 1.81.1 ↗ spring-projects/spring-integration
  7. [7] Bump org.apache.logging.log4j:log4j-bom from 2.25.4 to 2.25.5 ↗ spring-projects/spring-kafka
  8. [8] Bump org.hibernate.validator:hibernate-validator from 9.1.1.Final to 9.1.2.Final in the development-dependencies group ↗ spring-projects/spring-kafka

Quick answers

What shipped in Spring on July 12, 2026?
A critical bug in TokenCountBatchingStrategy was dropping duplicate documents during batch processing, silently returning fewer embeddings than requested. In total, 2 commits and 7 pull requests landed.
Who contributed to Spring on July 12, 2026?
3 developers shipped this update, including dependabot, subhash polisetti, and Artem Bilan.
What were the notable Spring updates?
Fix `TokenCountBatchingStrategy` dropping equal documents, Remove 3.3.x from dependabot.yml, and Bump com.fasterxml.jackson:jackson-bom from 2.22.0 to 2.22.1.

More from @spring-projects

Daily updates, in your inbox

Follow Spring

Spring Framework, Spring Boot, and the JVM enterprise layer We'll email you a link to confirm first.

Free. Confirm via email. Unsubscribe in one click.

— or follow the whole beat:

Elsewhere on the wire