[Kde-pim] Review Request 124264: Retry starting mysqld a few times. It always failed here.

Andreas Hartmetz ahartmetz at gmail.com
Sun Jul 5 21:55:23 BST 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/124264/
-----------------------------------------------------------

Review request for Akonadi.


Repository: akonadi


Description
-------

Retry connecting to the MySQL server a couple of times.
    
For me it reliably failed at the version check, which is the first
query executed on a new connection. So apparently the connection
looked ready but wasn't. Looks like a problem in a lower layer
where I unfortunately couldn't find any suspicious changes.
I did not look lower than QtSql, though.
    
With this change, the connections usually succeeds at the fourth
attempt, which is about one second after the first.
My previous workaround was trying to start akonadi, obtaining
the mysqld start command with
"while true; do ps aux | grep mysqld ; done"
then starting mysqld manually, then akonadi. That worked
very reliably.


Diffs
-----

  src/server/storage/dbconfigmysql.cpp e42185d 

Diff: https://git.reviewboard.kde.org/r/124264/diff/


Testing
-------

The akonadi server starts up again.
It worked briefly before, but now I couldn't start it anymore on two different machines. I made several attempts.


Thanks,

Andreas Hartmetz

_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list