public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Steve Cossette <farchord@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/akonadi-server] f43: Fix for Akonadi killing mariadb too quickly
Date: Thu, 09 Jul 2026 19:08:51 GMT	[thread overview]
Message-ID: <178362413153.1.3391519088214042210.rpms-akonadi-server-3893485d7855@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/akonadi-server
Branch : f43
Commit : 3893485d7855d1f494ea04c6362028b5372d067a
Author : Steve Cossette <farchord@gmail.com>
Date   : 2026-07-09T14:26:42-04:00
Stats  : +76/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/akonadi-server/c/3893485d7855d1f494ea04c6362028b5372d067a?branch=f43

Log:
Fix for Akonadi killing mariadb too quickly

---
diff --git a/400.patch b/400.patch
new file mode 100644
index 0000000..079765c
--- /dev/null
+++ b/400.patch
@@ -0,0 +1,69 @@
+From f0d71c9a28491b3fa664c1c520558c591061cb99 Mon Sep 17 00:00:00 2001
+From: Allen Winter <winter@kde.org>
+Date: Thu, 9 Jul 2026 07:25:18 -0400
+Subject: [PATCH] WIP - Fixes for Akonadi killing MariaDB too quickly
+
+[Tested with Fedora44 and mariadb 11.8.8]
+[No idea if these settings are ok for other MySQL variants]
+
+Implement the recommendations in BUG522845 to prevent crashes
+on login/logout when using the MariaDB backend.
+
+Includes these changes:
+- increase the wait from 3 to 30 seconds before termination
+- remove the  `TimeoutSec=5sec` in akonadi_control.service.in
+  so that systemd doesn't try to kill things after 5 seconds wait.
+- add `skip_slave_start` to mysql-global.conf so that replica
+  threads are not started which should improve startup time.
+
+BUG: 522845
+---
+ src/akonadicontrol/akonadi_control.service.in | 1 -
+ src/server/storage/dbconfigmysql.cpp          | 4 ++--
+ src/server/storage/mysql-global.conf          | 3 +++
+ 3 files changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/src/akonadicontrol/akonadi_control.service.in b/src/akonadicontrol/akonadi_control.service.in
+index 03c35ef5d..26f4b1838 100644
+--- a/src/akonadicontrol/akonadi_control.service.in
++++ b/src/akonadicontrol/akonadi_control.service.in
+@@ -9,7 +9,6 @@ PartOf=graphical-session.target
+ ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/akonadi_control
+ Type=dbus
+ BusName=org.freedesktop.Akonadi.Control
+-TimeoutSec=5sec
+ Slice=background.slice
+ # Disable restart as we're dbus activated anyway
+ Restart=no
+diff --git a/src/server/storage/dbconfigmysql.cpp b/src/server/storage/dbconfigmysql.cpp
+index 5f1dbd2e0..bb82a6537 100644
+--- a/src/server/storage/dbconfigmysql.cpp
++++ b/src/server/storage/dbconfigmysql.cpp
+@@ -609,8 +609,8 @@ void DbConfigMysql::stopInternalServer()
+     }
+ 
+     mDatabaseProcess->terminate();
+-    const bool result = mDatabaseProcess->waitForFinished(3000);
+-    // We've waited nicely for 3 seconds, to no avail, let's be rude.
++    const bool result = mDatabaseProcess->waitForFinished(30000);
++    // We've waited nicely for 30 seconds, to no avail, let's be rude.
+     if (!result) {
+         mDatabaseProcess->kill();
+     }
+diff --git a/src/server/storage/mysql-global.conf b/src/server/storage/mysql-global.conf
+index b381ea502..9cc47ecf7 100644
+--- a/src/server/storage/mysql-global.conf
++++ b/src/server/storage/mysql-global.conf
+@@ -78,6 +78,9 @@ loose_query_cache_size=0
+ # Do not cache results (default:1)
+ loose_query_cache_type=0
+ 
++# Tells the replica server not to start the replication I/O (receiver) and SQL (applier) threads when the server starts
++skip_slave_start
++
+ # Do not use the privileges mechanisms
+ skip_grant_tables
+ 
+-- 
+GitLab
+

diff --git a/akonadi-server.spec b/akonadi-server.spec
index e27257b..c8504d8 100644
--- a/akonadi-server.spec
+++ b/akonadi-server.spec
@@ -5,7 +5,7 @@
 Name:    akonadi-server
 Summary: PIM Storage Service
 Version: 26.04.3
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 License: BSD-3-Clause AND CC0-1.0 AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-only AND LGPL-2.0-only AND LGPL-2.0-or-later AND LGPL-2.1-or-later AND MIT
 URL:     https://invent.kde.org/pim/akonadi
@@ -18,6 +18,9 @@ Source11:       akonadiserverrc.sqlite
 
 
 ## upstreamable patches
+## MySQL is killed by akonadi too fast
+## https://invent.kde.org/pim/akonadi/-/merge_requests/400
+Patch0:         400.patch
 
 ## upstream patches
 
@@ -258,6 +261,9 @@ fi
 
 
 %changelog
+* Thu Jul 09 2026 Steve Cossette <farchord@gmail.com> - 26.04.3-2
+- Adding a fix for akonadi killing mysql too quickly
+
 * Tue Jun 30 2026 Steve Cossette <farchord@gmail.com> - 26.04.3-1
 - 26.04.3
 

                 reply	other threads:[~2026-07-09 19:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178362413153.1.3391519088214042210.rpms-akonadi-server-3893485d7855@fedoraproject.org \
    --to=farchord@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox