-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ecr: Garbage collection for ECR prints runs indefinitely #32742
Comments
Hi @BwL1289 , thanks for reaching out. Looks like a similar issue with garbage collector was reported few days ago and fix was also put in place last week- #32679 |
Hi @khushail. I am using v2.174.0 which is the latest version. |
@BwL1289 , thanks for the confirmation. I tried to repro the scenario in my account with the latest version and here is what I am getting - Images are being tagged but not deleted. Trying to reproduce it in other region. |
@khushail I am seeing the same behavior, in addition to what I described originally. |
This is strange @BwL1289, sorry that you are experiencing this. If this is a nextToken issue as we thought before, I believe a repro with 1000+ images in the ecr repo would help. However, before I get to that tomorrow, I just want to make sure -- you are on CDK CLI version 2.174.0, not just aws-cdk-lib 2.174.0 right? |
@kaizencc all good. Appreciate the support. Yes, on CDK CLI version |
@kaizencc also just to clarify, I don't believe it's only a nextToken issue (I experienced that before the latest fix). In the previous version in the verbose output I could see the same image ids being iterated over. Now I'm seeing images also get tagged but not deleted. What's also interesting is the verbose output stops after a period of time running. |
@kaizencc were you able to reproduce? |
Describe the bug
Seeing unexpected behavior, specifically in ECR.
In one account I see the following:
This continues seemingly indefinitely. It's also strange that the verbose flag stops working after some period of time.
In another account I see the following:
This also continues seemingly indefinitely. Same with verbose flag behavior not working as expected after some period of time.
I've left it running for 6 hours and still the same.
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Delete all unused ecr and s3 cdk assets.
Current Behavior
Ecr and s3 assets that are unused are not being deleted and runs indefinitely.
Reproduction Steps
Run
cdk gc --unstable='gc' --type='all' -vvvv --rollback-buffer-days=1
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.174.0
Framework Version
No response
Node.js Version
22.12.0
OS
MacOS
Language
Python
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: