https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33972

--- Comment #20 from Marcel de Rooy <[email protected]> ---
(In reply to David Cook from comment #19)
> Side note: We assume that "Koha::Database->schema->storage->dbh" always
> returns the same database handle, but that's not necessarily true.
> 
> According to the documentation and source code at
> https://metacpan.org/pod/DBIx::Class::Storage::DBI#dbh it seems that it
> tries to fetch a cached database handle but if for whatever reason that
> cached database handle doesn't seem connected, it'll create a new handle and
> connect. 
> 
> Probably not related but just noticed that while looking at something else...

wait_timeout defaults to  28800 (seconds) == 8 hours. 
The worker is a continuous process. It does db reads itself for the job
details. At some point probably a _resultset call in Koha objects or so
triggers a reconnect and we get a new handle.
But this problem seems to be reproduced every time. The reconnect should
logically not occur when we already read job details and continue in the child?
So there must be something else going on too..

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to