Bug 12472

Summary: Unit Tests failing with "MySQL server has gone away"
Product: Koha Reporter: Kyle M Hall <kyle>
Component: Architecture, internals, and plumbingAssignee: Kyle M Hall <kyle>
Status: CLOSED INVALID QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13610
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 12472 - Unit Tests failing with "MySQL server has gone away"

Description Kyle M Hall 2014-06-24 12:38:49 UTC
This bug is related to bug 11891 which was recently pushed to master. The issue is that the followup "Bug 11891: (follow-up) remove custom storage class" ( commit id 967f5cb51321a6a08176c7718a6ab933b3b5f926 ) removes the custom storage class that stopped DBIx::Class from destroying the dbh handle when it was done using it.
Comment 1 Kyle M Hall 2014-06-24 12:39:34 UTC
Created attachment 29190 [details] [review]
Bug 12472 - Unit Tests failing with "MySQL server has gone away"

This bug is related to bug 11891 which was recently pushed to master.
The issue is that the followup "Bug 11891: (follow-up) remove custom
storage class" ( commit id 967f5cb51321a6a08176c7718a6ab933b3b5f926 )
removes the custom storage class that stopped DBIx::Class from
destroying the dbh handle when it was done using it.

Test Plan:
1) Run 'perl t/db_dependent/Circulation.t'
2) Note the error
   DBD::mysql::st execute failed: MySQL server has gone away at
   /home/koha/kohaclone/C4/Members.pm line 881.
3) Apply this patch
4) Re-run 'perl t/db_dependent/Circulation.t'
5) No errors!
Comment 2 Jonathan Druart 2014-07-09 15:49:01 UTC
I don't reproduce the error.
Comment 3 Kyle M Hall 2014-08-07 20:31:28 UTC
I believe the requirement for a newer version of dbic has made this patch obsolete.