Sometimes, acquia_agent_check_subscription() gets called with a "no_heartbeat" option which returns different subscription data, but when we cache the subscription information with variable_set(), we don't care about this argument.

This specifically sometimes breaks Acquia Search configuration, because it can't determine the Solr indexes' Hostname to use, and falls back to using "search.acquia.com" which might be the wrong domain.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

janusman created an issue. See original summary.

janusman’s picture

janusman’s picture

Issue summary: View changes
janusman’s picture

Priority: Normal » Major

Kind of a problem, so raising to Major.

dmitrii’s picture

It looks like you're using the acquia_search_multi_subs module and issue is related to the acquia_search_multi_subs module and was introduced by me in
http://cgit.drupalcode.org/acquia_search_multi_subs/commit/?id=9b71c72
Attached patch should fix the issue.
Let me know if it helps.

dmitrii’s picture

Status: Active » Needs review
janusman’s picture

Thanks for that patch! I will put it onto acquia_search_multi_subs ....

However, it still feels wrong that acquia_agent_check_subscription() is caching a result of something that has an argument, while disregarding that argument. Can I get a second look at that? :)

dmitrii’s picture

Status: Needs review » Needs work

Yeah, now I see. We should include this patch. Probably it's necessary to add some logic to avoid situation when the module might be without configuration.
I'll discuss this with the team.

Dane Powell’s picture

Status: Needs work » Closed (won't fix)

This branch of Acquia Connector is no longer supported, per the version policy on the project homepage. As such, I'm tentatively closing this issue.

If this issue still applies to a supported branch (currently 7.x-3.x, 8.x-1.x, or 8.x-2.x), please reopen and select the new target version. Thanks!