Skip to content

Per-team worker base resource type volumes outlive their team #1708

Closed

Description

@vito

Bug Report

The WATs create a fresh team for every test and then destroy it at the end. It looks like the volumes for the base resource types never go away, even when the team_id column is NULL.

If team_id is ever NULL, I think we should GC the volume. We don't share any type of volume across teams, even resource caches, so there's no case where we'd want to keep it.

Activity

  1. vito commented on Jun 28, 2018

    @vito
    ContributorAuthor

    @topherbullock It's been a while, so do you know if this is still the case? I think this would be low-hanging fruit to fix, so if we've got the bandwidth for it it'd be nice to clean up this tech debt.

  2. topherbullock commented on Jun 28, 2018

    @topherbullock
    Contributor

    @vito george costanza shrugging
    No idea. We should validate whether this is still the case.. dragging it up the backlog.

  3. topherbullock commented on Jul 25, 2018

    @topherbullock
    Contributor

    Ran through creating a team with a pipeline which uses base resources, and they do get GC'd eventually.
    I did observe a lot of "volume cannot be destroyed as children are present" messages relating to the base resource type volume, so this might be a place to improve. We could potentially do some ordering of the volumes (and containers) to delete, so that we remove the deepest children first.

  4. vito commented on Jul 25, 2018

    @vito
    ContributorAuthor

    I think this may have actually been fixed by vmware-archive/atc@25cac08 as part of #2168.

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