Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
Activity manager service
Activity manager service
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Plasma
  • Activity manager serviceActivity manager service
  • Merge Requests
  • !1

Merged
Opened Jun 06, 2020 by Ivan Čukić@ivan👁Developer

Resources database backup system

  • Overview 2
  • Commits 1
  • Changes 10

More and more things depend on KAMD's resources database. Recent documents, favourites, KRunner, to name a few.

Now, SQLite is fairly stable with the write-ahead-log that has been enabled in KAMD for ages, but corruptions can still happen. Sometimes in SQLite, sometimes in the underlying file system.

This patch introduces a two-step backup system for the resources database. On each start, the current database files are copied to test-backup directory.

If no error appeared during the previous KAMD run, the test-backup files are promoted to working-backup.

This means that in order for a specific version of the database to be considered as 'working' (promoted to a working backup), it needs to have been a beginning of an error-free KAMD session.

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: plasma/kactivitymanagerd!1
Source branch: ivan/resources-database-backup