Skip to content

Comments

Fix staggering of log submission.#3796

Merged
cpu merged 1 commit intomasterfrom
stagger-ld
Jul 16, 2018
Merged

Fix staggering of log submission.#3796
cpu merged 1 commit intomasterfrom
stagger-ld

Conversation

@jsha
Copy link
Contributor

@jsha jsha commented Jul 13, 2018

ctpolicy permutes logs before submitting to them, to give each log a
chance. The stagger feature was meant to sleep for an amount of time
proportional to a log's position in the permuted list. However, it was
actually using the log's position in the un-permuted list, so logs that
appear later in the config would always be submitted to later than logs
earlier in the config.

This fixes that, and does some minor variable renaming for clarity.

ctpolicy permutes logs before submitting to them, to give each log a
chance. The stagger feature was meant to sleep for an amount of time
proportional to a log's position in the permuted list. However, it was
actually using the log's position in the un-permuted list, so logs that
appear later in the config would always be submitted to later than logs
earlier in the config.

This fixes that, and does some minor variable renaming for clarity.
@jsha jsha requested a review from a team as a code owner July 13, 2018 21:46
Copy link
Contributor

@rolandshoemaker rolandshoemaker left a comment

Choose a reason for hiding this comment

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

LGTM, I think it'd be nice to have a unittest that verifies this behavior works as intended, but I'm not convinced it's 100% necessary to land this change.

@cpu
Copy link
Contributor

cpu commented Jul 16, 2018

I'm not convinced it's 100% necessary to land this change.

I agree it would be nice but given J.sha is OOO I think its fair to merge as-is.

@cpu cpu merged commit a6f93ff into master Jul 16, 2018
@cpu cpu deleted the stagger-ld branch July 16, 2018 14:07
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.

3 participants