Skip to content

Fix Solr 10 migration#1833

Open
dpol1 wants to merge 4 commits intoapache:mainfrom
dpol1:fix/solr-10-migration
Open

Fix Solr 10 migration#1833
dpol1 wants to merge 4 commits intoapache:mainfrom
dpol1:fix/solr-10-migration

Conversation

@dpol1
Copy link
Contributor

@dpol1 dpol1 commented Mar 20, 2026

Fixes #1831

@rzo1 rzo1 requested a review from mvolikas March 20, 2026 19:45
@rzo1 rzo1 added this to the 3.5.2 milestone Mar 20, 2026
@rzo1 rzo1 added enhancement dependency dependency upgrade labels Mar 20, 2026
@rzo1
Copy link
Contributor

rzo1 commented Mar 20, 2026

Hi @dpol1

thanks for the PR !

Can you check the pipeline status? Guess it needs auto formatting. Thanks

@dpol1
Copy link
Contributor Author

dpol1 commented Mar 20, 2026

Oops, my bad 😅

@dpol1 dpol1 force-pushed the fix/solr-10-migration branch from 956a76f to 721d892 Compare March 20, 2026 20:29
Copy link
Contributor

@rzo1 rzo1 left a comment

Choose a reason for hiding this comment

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

For me, it looks good but I am not deep into SOLR.

@rzo1
Copy link
Contributor

rzo1 commented Mar 21, 2026

Thanks for the PR, @dpol1

"--name",
collectionName,
"-n",
"--conf-name",
Copy link
Contributor

Choose a reason for hiding this comment

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

Some options (like --conf-name) are not documented in the Solr Control Script Reference, but are shown when running bin/solr create --help so I guess are ok to use.

- Drop pseudo-async CompletableFuture.runAsync() around blocking cloudClient.request().
- Use NIO-based LBAsyncSolrClient.requestAsync() for Solr 10.
- Route writes via LBSolrClient.Endpoint built from leader baseUrl/coreName.
- Access CloudHttp2SolrClient#getLbClient() via explicit cast, with a note on potential SolrJ API changes.
@dpol1 dpol1 requested a review from mvolikas March 23, 2026 10:13
@mvolikas
Copy link
Contributor

Thanks for the changes @dpol1. Unfortunately I'm currently sick, so I'll be able to review earliest tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependency dependency upgrade enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address breaking changes introduced in SolrJ 10

3 participants