Bug 574584 - Various AutomaticUpdateScheduler issues after changing init to Job
Summary: Various AutomaticUpdateScheduler issues after changing init to Job
Status: RESOLVED FIXED
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 4.16   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.21 M1   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2021-07-01 05:08 EDT by Andrey Loskutov CLA
Modified: 2021-07-02 18:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2021-07-01 05:08:13 EDT
AutomaticUpdateScheduler was changed in bug 443809 to run earlyStartup() work as a Job.

This causes at least following issues: if the job execution delayed, call to rescheduleUpdate() fails with NPE because agent field is not initialized anymore. Next, the job is scheduled with a delay but there is no way for 3rd party to check if the job execution was already done, or if it still hanging around.

I will push a patch that addresses both issues.
Comment 1 Eclipse Genie CLA 2021-07-01 05:13:47 EDT
New Gerrit change created: https://git.eclipse.org/r/c/equinox/rt.equinox.p2/+/182669