If using HTTPD and Basic-Auth on each request the warning 'The function SolrConnectorPluginBase::useTimeout() has no affect because you use a HTTP adapter that is not implementing TimeoutAwareInterface. You need to adjust your SolrConnector accordingly.' is logged.

The warning is triggered for timeout-variant `query_timeout`.

It is not possible to deactivate or set it to 0.

What is the idea of this warning? Can you just remove this warning?

Comments

jan kellermann created an issue. See original summary.

jan kellermann’s picture

StatusFileSize
new844 bytes
jan kellermann’s picture

Status: Active » Needs review
jan kellermann’s picture

StatusFileSize
new780 bytes
mkalkbrenner’s picture

Category: Bug report » Support request
Status: Needs review » Active

The warning might be important. Which solarium version are you using?
The warning should disappear when you use solarium 5.2 or 6.0 and don't have any custom code that switches the http adapter.

For example the Acquia connector uses a different adpater. So it is their responsibility to deal with the issue in their "Connector". And that's why the warning must not be removed!

jan kellermann’s picture

Hi Markus,

astonishingly it is 5.0.3. Thank you for your hint!

I installed via

composer require symfony/event-dispatcher:"4.3.4 as 3.4.99" drupal/search_api_solr
composer require 'drupal/search_api_solr:^4.0'

and get nor errors or warnings.

jan kellermann’s picture

Status: Active » Closed (works as designed)

Hi,

`composer require --with-dependecies 'drupal/search_api_solr:^4.0'`

updated solarium to 5.2.0

Thank you.

kreatil’s picture

Running composer update --with-dependencies drupal/search_api_solr solved it for me too. Thank you for reporting and giving the hint.

edgarmxl’s picture

Uploading re-roll for version for version 1.10.0 in case anybody needs it.