Skip to content

[PublicationAwaiter] Don't fail awaiting on a single error#925

Merged
mhutchinson merged 3 commits into
transparency-dev:mainfrom
mhutchinson:awaiterTweaks
Apr 1, 2026
Merged

[PublicationAwaiter] Don't fail awaiting on a single error#925
mhutchinson merged 3 commits into
transparency-dev:mainfrom
mhutchinson:awaiterTweaks

Conversation

@mhutchinson
Copy link
Copy Markdown
Contributor

This changes the Await loop so that it no longer fails on a single transient error when fetching/parsing the checkpoint. For now this is set to fail on two consecutive errors, but perhaps this should be changed to keep trying until the context is cancelled for maximum stickiness. For now, this seems like a pragmatic compromise between these worlds.

This is important because it will make the write path for logs more likely to return happy status codes if there are intermittent problems reading checkpoint storage.

@mhutchinson mhutchinson requested a review from a team as a code owner April 1, 2026 11:50
@mhutchinson mhutchinson requested review from AlCutter and roger2hk April 1, 2026 11:50
Comment thread await.go Outdated
Comment thread await.go Outdated
mhutchinson and others added 3 commits April 1, 2026 16:21
This changes the Await loop so that it no longer fails on a single transient error when fetching/parsing the checkpoint. For now this is set to fail on two consecutive errors, but perhaps this should be changed to keep trying until the context is cancelled for maximum stickiness. For now, this seems like a pragmatic compromise between these worlds.

This is important because it will make the write path for logs more likely to return happy status codes if there are intermittent problems reading checkpoint storage.
Co-authored-by: Al Cutter <alcutter@google.com>
Co-authored-by: Al Cutter <alcutter@google.com>
@mhutchinson mhutchinson merged commit 09b21f8 into transparency-dev:main Apr 1, 2026
15 checks passed
@mhutchinson mhutchinson deleted the awaiterTweaks branch April 1, 2026 15:24
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