Commit eae701f
committed
fix: stop closing pooled MySQL connections
AccountingDB.insertRecordDirectly, DirectoryTreeBase.getDirectorySize and
PilotStatusAgent.execute all called .close() on a connection obtained
from the per-thread pool, destroying the pooled socket while the pool's
__assigned dict still cached the reference. Stock code masked this with
the per-call ping that reconnected on the next checkout; once the warm
ping skip was deployed the dead reference was reused inside the idle
window and the next query failed with (2006, '').1 parent 4c6d73c commit eae701f
3 files changed
Lines changed: 15 additions & 24 deletions
File tree
- src/DIRAC
- AccountingSystem/DB
- DataManagementSystem/DB/FileCatalogComponents/DirectoryManager
- WorkloadManagementSystem/Agent
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
639 | | - | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
644 | | - | |
645 | | - | |
646 | | - | |
647 | | - | |
648 | | - | |
649 | | - | |
650 | | - | |
651 | | - | |
652 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
653 | 650 | | |
654 | 651 | | |
655 | 652 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
804 | 804 | | |
805 | 805 | | |
806 | 806 | | |
807 | | - | |
808 | 807 | | |
809 | 808 | | |
810 | 809 | | |
811 | 810 | | |
812 | | - | |
813 | 811 | | |
814 | 812 | | |
815 | 813 | | |
| |||
826 | 824 | | |
827 | 825 | | |
828 | 826 | | |
829 | | - | |
830 | 827 | | |
831 | 828 | | |
832 | 829 | | |
833 | | - | |
834 | 830 | | |
835 | 831 | | |
836 | 832 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | | - | |
73 | 71 | | |
74 | 72 | | |
75 | 73 | | |
| |||
0 commit comments