Skip to content

Conversation

@dsmiley
Copy link
Contributor

@dsmiley dsmiley commented Oct 19, 2025

Discovered more changes needed...

  • solrj-streaming DatabaseMetaDataImpl
  • ZkController
  • ConcurrentUpdateHttp2SolrClient (jetty)

https://issues.apache.org/jira/browse/SOLR-17884

solrj-streaming DatabaseMetaDataImpl
ZkController
ConcurrentUpdateHttp2SolrClient (jetty)
Copy link
Contributor Author

@dsmiley dsmiley left a comment

Choose a reason for hiding this comment

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

I don't know how I missed this in the earlier PR for this JIRA issue where I thought I completely removed all direct/indirect Apache HttpClient references. Moving stuff to another module revealed these forgotten things.

// the
// leader now
// the leader now
// TODO .withHttpClient(getCoreContainer().getDefaultHttpSolrClient())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Preferable; however that means accepting its connection timeout. Heck; wouldn't need to create a new Http2SolrClient either; just use the default client. Personally I'd prefer that but... 🤷

import org.apache.solr.client.solrj.SolrClient;
import org.apache.solr.client.solrj.SolrRequest;
import org.apache.solr.client.solrj.SolrServerException;
import org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient.Update;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Don't want to use that internal POJO, so I created a similar record, copying the same javadoc line as well.

.withConnectionTimeout(8000, TimeUnit.MILLISECONDS)
.withSocketTimeout(30000, TimeUnit.MILLISECONDS)
.withIdleTimeout(30000, TimeUnit.MILLISECONDS)
.build()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

What about the security listeners?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it now. It's a trade-off but at least the listener issue could be a real bug

@dsmiley
Copy link
Contributor Author

dsmiley commented Oct 20, 2025

Planning to merge tonight (12 hours; 9:22 EST). Happy to pause for any reason.

@dsmiley dsmiley merged commit 5d8a539 into apache:main Oct 21, 2025
3 of 4 checks passed
@dsmiley dsmiley deleted the moreApacheHttpClientDepSwitch branch October 21, 2025 03:00
dsmiley added a commit that referenced this pull request Oct 21, 2025
* ZkController.  Unfortunately using longer connection timeout (30 not 8) but at least now we re-use an internal client; get listeners for observability & security.
* SolrJ ConcurrentUpdateHttp2SolrClient (jetty).  Used an inner class of a deprecated client.
* solrj-streaming DatabaseMetaDataImpl
dsmiley added a commit that referenced this pull request Oct 21, 2025
* ZkController.  Unfortunately using longer connection timeout (30 not 8) but at least now we re-use an internal client; get listeners for observability & security.
* SolrJ ConcurrentUpdateHttp2SolrClient (jetty).  Used an inner class of a deprecated client.
* solrj-streaming DatabaseMetaDataImpl

(cherry picked from commit 5d8a539)
@janhoy
Copy link
Contributor

janhoy commented Oct 21, 2025

Wooot 🎉

dsmiley added a commit that referenced this pull request Oct 23, 2025
* ZkController.  Unfortunately using longer connection timeout (30 not 8) but at least now we re-use an internal client; get listeners for observability & security.
* SolrJ ConcurrentUpdateHttp2SolrClient (jetty).  Used an inner class of a deprecated client.
* solrj-streaming DatabaseMetaDataImpl
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.

3 participants