[Kde-pim] Review Request 117144: Switch ServerManager to Broken state immediately when o.f.Akonadi.Control.Lock service disappears

Christian Mollekopf chrigi_1 at fastmail.fm
Fri Mar 28 21:32:31 GMT 2014


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

Ship it!


Ship It!

- Christian Mollekopf


On March 28, 2014, 5:52 p.m., Dan Vrátil wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/117144/
> -----------------------------------------------------------
> 
> (Updated March 28, 2014, 5:52 p.m.)
> 
> 
> Review request for Akonadi.
> 
> 
> Repository: kdepimlibs
> 
> 
> Description
> -------
> 
> When Akonadi is unable to start (because it can't start the DB process for example), it will terminate immediately. The current implementation of ServerManager has a 30 seconds timeout before it goes to 'Broken' state.
> 
> This patch adds a new check that will switch to Broken state immediately when org.freedesktop.Akonadi.Control.Lock disappears from bus. This service is owned by akonadi_control and when akonadi_control quits, it can only be because Akonadi has stopped (== failed to start), so when this happens in "Startup" state, we can safely assume, that Akonadi failed to start and we should go to Broken state.
> 
> 
> Diffs
> -----
> 
>   akonadi/servermanager.cpp 64ac5e9 
>   akonadi/session.cpp 0224c02 
> 
> Diff: https://git.reviewboard.kde.org/r/117144/diff/
> 
> 
> Testing
> -------
> 
> Stopped Akonadi, broke it (so that it does not start), started KMail, got "Akonadi is inoperational" immediately instead of 30 seconds of "Starting up the PIM service...".
> 
> 
> Thanks,
> 
> Dan Vrátil
> 
>

_______________________________________________
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