Skip to content

chore: requeue nodes for retry missing target size#59

Merged
dzmitryharchanin-tomtom merged 3 commits intomainfrom
chore/requeueNodesForRetry-missing-targetSize
Jan 29, 2026
Merged

chore: requeue nodes for retry missing target size#59
dzmitryharchanin-tomtom merged 3 commits intomainfrom
chore/requeueNodesForRetry-missing-targetSize

Conversation

@SajadOrouji-TomTom
Copy link
Collaborator

Pull Request Description

This pull request addresses an issue where the TargetSize field could be lost during the requeueing of node termination operations, which could lead to incorrect scaling behavior. The main changes ensure that TargetSize is preserved when nodes are requeued for retry, and a new test is added to verify this behavior.

Bug fix: TargetSize preservation during node requeue

  • Updated the requeueNodesForRetry method in termination.go to accept and propagate the TargetSize parameter, ensuring it is included in requeued messages.

Testing improvements

  • Added TestTerminationService_TargetSizeLostDuringRequeue in termination_test.go to verify that TargetSize is correctly preserved and used during requeue and revert operations, preventing regressions.

Changes Made

Why?

Related Issue(s)

Type of change

Please delete options that are not relevant.

  • Bugfix
  • Feature
  • Code Refactor
  • Documentation content changes
  • Tests
  • Chore(Release)
  • Revert
  • Other

@SajadOrouji-TomTom SajadOrouji-TomTom changed the title Chore/requeue nodes for retry missing target size chore: requeue nodes for retry missing target size Jan 28, 2026
@dzmitryharchanin-tomtom dzmitryharchanin-tomtom merged commit 48ec95b into main Jan 29, 2026
3 checks passed
@dzmitryharchanin-tomtom dzmitryharchanin-tomtom deleted the chore/requeueNodesForRetry-missing-targetSize branch January 29, 2026 11:13
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