Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greatly simplify crl-updater's batch mode #7079

Merged
merged 6 commits into from
Sep 19, 2023
Merged

Conversation

aarongable
Copy link
Contributor

@aarongable aarongable commented Sep 13, 2023

Replace crl-updater's overly complex RunOnce and updateIssuer methods with a single, much simpler RunOnce that is modeled off of the recently-redone continuous Run method's model. Instead of breaking things down by issuer then shard, simply kick off everything in parallel. This also improves batch mode's ability to listen for context cancellations at all the appropriate times.

At the same time, move getShardMappings into the shared updater.go file because it is used by both the batch and continuous modes of operation, and improve uniformity of usage of the crlId structure in log output.

Fixes #7066

DO NOT MERGE before #7078

@aarongable aarongable requested a review from a team as a code owner September 13, 2023 00:05
@aarongable aarongable requested review from jsha and removed request for a team September 13, 2023 00:05
Base automatically changed from unfork-crl-x509 to main September 16, 2023 03:25
jsha
jsha previously approved these changes Sep 18, 2023
@aarongable aarongable requested a review from a team September 18, 2023 22:46
@beautifulentropy beautifulentropy self-requested a review September 19, 2023 15:46
Copy link
Member

@beautifulentropy beautifulentropy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great. I have just one comment concerning a potential deadlock on context cancellation.

crl/updater/batch.go Outdated Show resolved Hide resolved
crl/updater/batch.go Show resolved Hide resolved
@beautifulentropy beautifulentropy self-requested a review September 19, 2023 19:49
@aarongable aarongable merged commit 519c199 into main Sep 19, 2023
@aarongable aarongable deleted the crl-simpler-batch branch September 19, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

crl-updater: Run crl updates in parallel for all issuers during batch mode
4 participants