Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-26 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2377494703 We have already taken a step towards achieving immutability for Http2SolrClient by deprecating addListenerFactory. As I mentioned earlier, the next step should be to ensure that the securi

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-26 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2377485484 Of course I am not suggesting this change for now. But still want to share my concern here. The ability to add a listener factory after initialization introduces the potential for

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
dsmiley commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2375837529 I'm in favor of a CoreContainer.newHttpSolrClient(String url) method that the caller should close and that which uses a common underlying HttpClient instance / connection-pool underneath.

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
gerlowskija commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2375060453 All the approaches have downsides for sure, but for me personally, object allocation and the 'Closeable'-burden seem like the lesser evils. > unnecessary object creation "Cl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1775604953 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,88 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1775595008 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,88 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2374579550 > Wdyt about saving `getDefaultHttpClient()` take in a baseUrl, so that the returned instance can take advantage of all SolrClient methods "out of the box"? > > (Also - am I missing

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
gerlowskija commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1775500138 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedCo

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-25 Thread via GitHub
gerlowskija commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1775285594 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,88 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-24 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1774390477 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-24 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1774390477 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-19 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1766878358 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedCollec

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-18 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1766118550 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-18 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1766116768 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-18 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1766116768 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-10 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1752562414 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedCollec

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-10 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1752552453 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + *

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-09 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1750643762 ## solr/core/src/test/org/apache/solr/core/TestCoreContainer.java: ## @@ -1131,6 +1132,48 @@ public void testCoreInitFailuresOnReload() throws Exception { cc.shutdow

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-09 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1750442293 ## solr/core/src/test/org/apache/solr/core/TestCoreContainer.java: ## @@ -1131,6 +1132,48 @@ public void testCoreInitFailuresOnReload() throws Exception { cc.shutd

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-09 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1750406272 ## solr/core/src/test/org/apache/solr/core/TestCoreContainer.java: ## @@ -1131,6 +1132,48 @@ public void testCoreInitFailuresOnReload() throws Exception { cc.shutd

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-09 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1750400090 ## solr/core/src/test/org/apache/solr/core/TestCoreContainer.java: ## @@ -1131,6 +1132,48 @@ public void testCoreInitFailuresOnReload() throws Exception { cc.shutd

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-09 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1750378062 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -40,107 +34,55 @@ * * @lucene.internal */ -class HttpSolrClientProvider implements Solr

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-06 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1746871199 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-05 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1745829882 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + *

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-05 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1745827217 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + *

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-05 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1745826245 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedCollec

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-05 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1745483402 ## solr/core/src/java/org/apache/solr/core/HttpSolrClientProvider.java: ## @@ -0,0 +1,151 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more +

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-05 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1745440775 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedColl

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-04 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1744236940 ## solr/core/src/java/org/apache/solr/core/CoreContainer.java: ## @@ -2563,6 +2581,11 @@ public PlacementPluginFactory getPlacementPlugi return this.distributedCollec

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
dsmiley commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2326707800 OK RE not subclassing SolrClientCache. Despite CoreContainer's code size, I think it's reasonable to have a getHttpSolrClient on it as it's important and used widely enough (and I expe

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1742194558 ## solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java: ## @@ -347,22 +348,27 @@ PublicKey fetchPublicKeyFromRemote(String nodename) { HttpEnti

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1742191640 ## solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java: ## @@ -347,22 +348,27 @@ PublicKey fetchPublicKeyFromRemote(String nodename) { HttpEntity

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
iamsanjay commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1742146196 ## solr/core/src/java/org/apache/solr/security/PKIAuthenticationPlugin.java: ## @@ -347,22 +348,27 @@ PublicKey fetchPublicKeyFromRemote(String nodename) { HttpEnti

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2326587995 An alternative would be to introduce another class and add a method in CoreContainer to return that class. However, we already have the `UpdateShardHandler` class which exactly does the sa

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2326571320 I don't think we should extend SolrClientCache. While we're looking for a new home for the default HTTP client and have agreed that UpdateShardHandler isn't the right place, the same appli

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-03 Thread via GitHub
dsmiley commented on code in PR #2689: URL: https://github.com/apache/solr/pull/2689#discussion_r1742021681 ## solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/SolrClientCache.java: ## @@ -169,6 +169,10 @@ public synchronized SolrClient getHttpSolrClient(String bas

Re: [PR] SOLR-16503: New home for default http2 client [solr]

2024-09-02 Thread via GitHub
iamsanjay commented on PR #2689: URL: https://github.com/apache/solr/pull/2689#issuecomment-2325100679 I still need to adjust how the HTTP client is initialized, but is this aligned with what you had in mind when you suggested extending SolrClientCache in [this discussion](https://github.c

[PR] SOLR-16503: New home for default http2 client [solr]

2024-09-02 Thread via GitHub
iamsanjay opened a new pull request, #2689: URL: https://github.com/apache/solr/pull/2689 https://issues.apache.org/jira/browse/SOLR-16503 Spin Off #2351 Many HTTP requests currently rely on the default client from UpdateShardHandler. However, it has been noted that UpdateShar