Skip to content

SOLR-18063: Fix NPE when resubmitting requests to dead-letter queue.#4045

Merged
sigram merged 2 commits intoapache:mainfrom
sigram:jira/solr-18063
Jan 26, 2026
Merged

SOLR-18063: Fix NPE when resubmitting requests to dead-letter queue.#4045
sigram merged 2 commits intoapache:mainfrom
sigram:jira/solr-18063

Conversation

@sigram
Copy link
Contributor

@sigram sigram commented Jan 13, 2026

There were some code paths where the original MirroredSolrRequest wasn't preserved in IQueueHandler.Result. This resulted in NPEs when re-submitting to a dead-letter queue, but IMHO the fact that you could produce Result with a null item was trappy enough so I refactored the constructors to avoid it.

This PR also drops requests for non-existent or read-only collections to avoid unnecessary errors from Solr.

…Drop requests for non-existent or read-only collections.
@sigram sigram requested a review from dsmiley January 20, 2026 12:28
@sigram sigram merged commit d952e09 into apache:main Jan 26, 2026
5 checks passed
sigram added a commit to sigram/solr that referenced this pull request Jan 28, 2026
sigram added a commit that referenced this pull request Jan 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant