Skip to content

SOLR-18077: Fix incorrect request reuse, fix unit tests.#4396

Merged
sigram merged 4 commits intoapache:mainfrom
sigram:jira/solr-18077-2
May 6, 2026
Merged

SOLR-18077: Fix incorrect request reuse, fix unit tests.#4396
sigram merged 4 commits intoapache:mainfrom
sigram:jira/solr-18077-2

Conversation

@sigram
Copy link
Copy Markdown
Contributor

@sigram sigram commented May 4, 2026

This PR fixes a bug in KafkaCrossDcConsumer where an updateReqBatch request used for collapsing multiple input requests would be left non-null and then incorrectly reused. This resulted in the same document updates being sometimes sent to Solr multiple times.

Added unit test to verify the number of processed updates.

@@ -75,6 +75,8 @@
public class KafkaCrossDcConsumer extends Consumer.CrossDcConsumer {
private static final Logger log = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this option so specific to a developer that no user would ever concievable want to enable it? If it might be neabled by a user, it would be nice to add it to our solr-properties.adoc file to explain what it is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This exposes a really low-level info that IMHO is useful only for verifying the key / partition assignments, so it makes sense for a developer but unlikely useful to an ops person.

@sigram sigram merged commit a2370b5 into apache:main May 6, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants