[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    D10691: [kactivities-stats] Fix plasmashell crash when database is broken
From:       Ivan Čukić <noreply () phabricator ! kde ! org>
Date:       2018-02-26 9:10:28
Message-ID: 20180226091028.1.F60F3E8814DE578C () phabricator ! kde ! org
[Download RAW message or body]

ivan added a comment.


  The fix needs to be a bit more complex. We can not really rely on the user to fix \
the database.  
  The current plan is to have kamd backup the important parts of the database from \
time to time, and to recreate the database when needed.  
  I'll see whether I can roll out a crash=>fail-with-a-message patch for the LTS.
  
  The current implementation relied on my (wrong) assumption that sqlite is very \
stable and that it can not go berserk and corrupt the database. :)

REPOSITORY
  R159 KActivities Statistics

REVISION DETAIL
  https://phabricator.kde.org/D10691

To: kpiwowarski, #plasma, #frameworks, hein, ivan
Cc: ivan, plasma-devel, #frameworks, michaelh, ZrenBot, lesliezhai, ali-mohamed, \
jensreuterberg, abetts, sebas, apol, mart


[Attachment #3 (unknown)]

<table><tr><td style="">ivan added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: \
right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: \
#F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: \
inline-block; border: 1px solid rgba(71,87,120,.2);" \
href="https://phabricator.kde.org/D10691" rel="noreferrer">View \
Revision</a></tr></table><br /><div><div><p>The fix needs to be a bit more complex. \
We can not really rely on the user to fix the database.</p>

<p>The current plan is to have kamd backup the important parts of the database from \
time to time, and to recreate the database when needed.</p>

<p>I&#039;ll see whether I can roll out a crash=&gt;fail-with-a-message patch for the \
LTS.</p>

<p>The current implementation relied on my (wrong) assumption that sqlite is very \
stable and that it can not go berserk and corrupt the database. :)</p></div></div><br \
/><div><strong>REPOSITORY</strong><div><div>R159 KActivities \
Statistics</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a \
href="https://phabricator.kde.org/D10691" \
rel="noreferrer">https://phabricator.kde.org/D10691</a></div></div><br \
/><div><strong>To: </strong>kpiwowarski, Plasma, Frameworks, hein, ivan<br \
/><strong>Cc: </strong>ivan, plasma-devel, Frameworks, michaelh, ZrenBot, lesliezhai, \
ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic