Skip to content

Conversation

aliculPix4D
Copy link
Contributor

@aliculPix4D aliculPix4D commented Oct 27, 2020

What does this PR accomplish?

Bug Fix
Fixes the bug where more tasks than the chosen limit can land on the same worker, even though limit-active-task container placement strategy option with max-active-task-per-worker is selected.
This fix ensures that chosenWorker = client.pool.FindOrChooseWorkerForContainer returns nil if the first task already acquired the lock.

closes #6206

Changes proposed by this PR:

Notes to reviewer:

Release Note

Contributor Checklist

Reviewer Checklist

  • Code reviewed
  • Tests reviewed
  • Documentation reviewed
  • Release notes reviewed
  • PR acceptance performed
  • New config flags added? Ensure that they are added to the
    BOSH and
    Helm packaging; otherwise, ignored for
    the integration
    tests

    (for example, if they are Garden configs that are not displayed in the
    --help text).

@aliculPix4D aliculPix4D force-pushed the fix-2-active-tasks-bug branch from 05f0cb2 to e641e4c Compare October 27, 2020 08:23
…-active-tasks is not respected and more tasks can land on a worker

Fixes the bug where more tasks than the choosen limit can land on the same worker, even though limit-active-task container placement strategy option with max-active-task-per-worker is selected.
This fix ensures that chosenWorker = client.pool.FindOrChooseWorkerForContainer returns nil if the first task already acquired the lock.

concourse#6206

Signed-off-by: aliculPix4D <aleksandar.licul_ext@pix4d.com>
Copy link
Contributor

@muntac muntac left a comment

Choose a reason for hiding this comment

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

@aliculPix4D Thanks for taking the time to dig deep into such a hard to reproduce bug!

@muntac muntac merged commit 8d34582 into concourse:master Nov 9, 2020
@aoldershaw aoldershaw changed the title limit-active-task:structural: limit configured by limit-active-tasks is not respected and more tasks can land on a worker Limit configured by limit-active-tasks is not respected and more tasks can land on a worker Jan 25, 2021
@aoldershaw aoldershaw added the release/undocumented This didn't warrant being documented or put in release notes. label Jan 25, 2021
@aliculPix4D aliculPix4D deleted the fix-2-active-tasks-bug branch October 4, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug release/undocumented This didn't warrant being documented or put in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

limit-active-task: 2 tasks can land on the same worker
3 participants