Skip to content

Conversation

@mhutchinson
Copy link
Contributor

Previously if a leaf failed on a write, we would discard it and try again with another leaf. This was useful in the event that we generated an invalid leaf, because it would be temporary and the worker could continue. But in reality, we don't generate invalid leaves. So what happened is that in the event of the log temporarily pushing back to the user, leaves would be dropped. This meant that the tree size could be much smaller than the seed index that any indices that leaves had been generated from. All of this meant that on restarting the hammer against a populated log, it could spend a long time resubmitting duplicates because of this index mismatch. This is still possible, but the drift is much smaller now (at most N indices are leaked per hammer run, where N is the number of write workers).

Previously if a leaf failed on a write, we would discard it and try again with another leaf. This was useful in the event that we generated an invalid leaf, because it would be temporary and the worker could continue. But in reality, we don't generate invalid leaves. So what happened is that in the event of the log temporarily pushing back to the user, leaves would be dropped. This meant that the tree size could be much smaller than the seed index that any indices that leaves had been generated from. All of this meant that on restarting the hammer against a populated log, it could spend a long time resubmitting duplicates because of this index mismatch. This is still possible, but the drift is much smaller now (at most N indices are leaked per hammer run, where N is the number of write workers).
@mhutchinson mhutchinson requested a review from a team as a code owner May 19, 2025 15:10
@mhutchinson mhutchinson requested a review from AlCutter May 19, 2025 15:10
@mhutchinson mhutchinson requested a review from roger2hk May 19, 2025 15:10
@mhutchinson mhutchinson merged commit 2439e77 into transparency-dev:main May 19, 2025
15 checks passed
@mhutchinson mhutchinson deleted the hammer-stickyLeaf branch May 19, 2025 15:19
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.

2 participants