Bug 40947 - "Aborted connection 42 to db" from t/db_dependent/www/search_utf8.t
Summary: "Aborted connection 42 to db" from t/db_dependent/www/search_utf8.t
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 40945
  Show dependency treegraph
 
Reported: 2025-10-03 12:33 UTC by Jonathan Druart
Modified: 2025-10-03 12:38 UTC (History)
0 users

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 40947: Remove warning "Aborted connection" from t/db_dependent/www/search_utf8.t (2.25 KB, patch)
2025-10-03 12:38 UTC, Jonathan Druart
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Druart 2025-10-03 12:33:19 UTC

    
Comment 1 Jonathan Druart 2025-10-03 12:38:56 UTC
Created attachment 187384 [details] [review]
Bug 40947: Remove warning "Aborted connection" from t/db_dependent/www/search_utf8.t

We sent a SIGKILL to the daemon which does not let it cleanup

Updating to SIGTERM (15) and handle the dbh disconnect gracefully in the
daemon.

Also handle SIGINT (ctrl+c) only because I think it can be useful (?)

Test plan:
  prove t/db_dependent/www/search_utf8.t

=> Without this patch there are 3 warnings in the DB container log
db-1         | 2025-10-03 12:30:57 362 [Warning] Aborted connection 42 to db: 'koha_kohadev' user: 'koha_kohadev' host: '172.19.0.6' (Got an error reading communication packets)
=> With this patch applied there are none.