Skip to content

Conversation

iliana
Copy link
Contributor

@iliana iliana commented Oct 14, 2025

Fixes #9140.

Comment on lines 104 to 107
// In theory this should never happen; `Sender::send`
// returns an error only if the receiver has hung up, and
// the receiver should live for as long as Nexus does (it
// belongs to the background task driver).
Copy link
Contributor

Choose a reason for hiding this comment

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

(This can happen during shutdown, where the order Tokio tasks are torn down in is undefined)

Copy link
Contributor

Choose a reason for hiding this comment

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

How about changing it to:

This error can only happen while Nexus's Tokio runtime is shutting down; Sender::send returns an error only if the receiver has hung up, and the receiver should live for as long as Nexus does (it belongs to the background task driver.)

In the unlikely event that it does happen within this narrow window, the impact is that the database has recorded a repository for which we no longer have the artifacts. The fix would be to reupload the repository.

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.

always hand over uploaded TUF repos to the artifact replication task

2 participants