Skip to content

Upload purger goroutine never exits #4942

Closed

Description

@jpeach

Description

In handlers.NewApp() there is a call to startUploadPurger, which creates a background goroutine to call storage.PurgeUploads. The goroutine runs forever and there's no way to interrupt it, so it leaks when you call (app *App) Shutdown().

Seems like the shutdown should also stop and background threads that the app starts.

Reproduce

Observed in internal unit tests.

app := handlers.NewApp(...)
app.Shutdown()

/// purge upload still running

Expected behavior

No response

registry version

v3.0.0

Additional Info

No response

Activity

  1. ranjanprasad96 commented on Aug 27, 2026

    @ranjanprasad96

    +1, Seeing same behaviour. This causes leak in memory usage

  2. ranjanprasad96 commented on Aug 27, 2026

    @ranjanprasad96

    @stevvooe Could you please check this problem? This seems to affect us in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions