Project

General

Profile

Bug #9045

Race condition in package reinstall/startup after restore can lead to no packages restored

Added by Jim Pingle over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Package System
Target version:
Start date:
10/16/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
2.4.4
Affected Architecture:
All

Description

rc.bootup triggers a rc.package_reinstall_all in the background with a delay, to reinstall all packages in the config.

rc.start_packages comes along and then tries to start all packages shortly after the background reinstall is triggered.

When rc.start_packages tries to sync each package, it sees that the package is not properly installed and thus removes its package XML from the configuration.

Then the package reinstall has nothing to do, because by the time it starts up, the package list in the config is empty since they were all wiped out.

Associated revisions

Revision 84963037 (diff)
Added by Jim Pingle over 2 years ago

Solve a package reinstall/start race condition. Fixes #9045

Revision d7f7ab4f (diff)
Added by Jim Pingle over 2 years ago

Solve a package reinstall/start race condition. Fixes #9045

(cherry picked from commit 84963037949aaf5225ae664cfe9b4e3b037beee0)

History

#1 Updated by Jim Pingle over 2 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Renato Botelho over 2 years ago

  • Status changed from Feedback to Resolved

Works

Also available in: Atom PDF