<div dir="ltr">+1<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div style="font-size:small">---<br></div></div><div><a href="http://www.kylehall.info" target="_blank">http://www.kylehall.info</a><br>ByWater Solutions ( <a href="http://bywatersolutions.com" target="_blank">http://bywatersolutions.com</a> )<br>Meadville Public Library ( <a href="http://www.meadvillelibrary.org" target="_blank">http://www.meadvillelibrary.org</a> )<br>Crawford County Federated Library System ( <a href="http://www.ccfls.org" target="_blank">http://www.ccfls.org</a> )<br></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 2:20 PM Jonathan Druart <<a href="mailto:jonathan.druart@bugs.koha-community.org">jonathan.druart@bugs.koha-community.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi devs,<br>
<br>
I am still recovering from my holidays and I think I caught a quite big fish.<br>
<br>
After an interesting track game I will explain why I am suggesting to<br>
remove Cache::Memory that is currently used as fallback for the L2<br>
cache.<br>
<br>
What I tried to fix:<br>
Jenkins is complaining about selenium tests (regressions.t) failing on<br>
18.05, it is a succession of events and bugs that were not linked at<br>
first glance.<br>
<br>
Here are the different steps I went though:<br>
- On bug 21426 we noticed that USE_MEMCACHED was not taken into<br>
account. If set to "no" the default memcached config was defined in<br>
the koha-config.xml file anyway<br>
- A new regression selenium test was added on bug 21777 to catch the<br>
presence of an audio alert on the circulation page<br>
- Investigating the failing tests I noticed that koha-testing-docker<br>
was not setting the memcached config on the 18.05 branches (I guess<br>
the image has not been rebuilt yet)<br>
search_utf8.t output "Warning: script running in daemon mode, without<br>
recommended caching system (memcached)."<br>
- I also find that [% Koha.Preference('AudioAlerts') %] did not return<br>
the value set by the tests, but the value that the DB has before the<br>
tests were launched<br>
=> It is a cache issue!<br>
- ...but only when memcached is not set...<br>
- Reading Koha::Cache->new we can notice that Cache::Memory is used<br>
for the L2 cache when memcached is not defined in the config<br>
<br>
And so we have the problem: If a value is set in the cache by a Plack<br>
worker, it will not be available from another one, as the L2 cache is<br>
not shared (!)<br>
<br>
To recreate easily the problem you can:<br>
- remove the memcached config<br>
- edit intranet-bottom.inc and add<br>
===[% Koha.Preference('AudioAlerts') %]===<br>
- restart plack<br>
- Modify the value of AudioAlerts (using the UI)<br>
- Reload the page (reload several times if the value is still correct,<br>
it will depend on which worker will serve the request)<br>
<br>
Solution:<br>
I am considering removing Cache::Memory unless somebody else has a better idea<br>
Bug 21955 - Cache::Memory should not be used as L2 cache<br>
<br>
Note that it should not affect a lot of people as everybody is<br>
supposed to have memcached configured and working correctly!<br>
<br>
Cheers,<br>
Jonathan<br>
_______________________________________________<br>
Koha-devel mailing list<br>
<a href="mailto:Koha-devel@lists.koha-community.org" target="_blank">Koha-devel@lists.koha-community.org</a><br>
<a href="http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel" rel="noreferrer" target="_blank">http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel</a><br>
website : <a href="http://www.koha-community.org/" rel="noreferrer" target="_blank">http://www.koha-community.org/</a><br>
git : <a href="http://git.koha-community.org/" rel="noreferrer" target="_blank">http://git.koha-community.org/</a><br>
bugs : <a href="http://bugs.koha-community.org/" rel="noreferrer" target="_blank">http://bugs.koha-community.org/</a><br>
</blockquote></div>