Skip to content
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

(cli): cdk gc for S3 gets stuck / runs indefinitely #33441

Closed
1 task
blimmer opened this issue Feb 13, 2025 · 6 comments
Closed
1 task

(cli): cdk gc for S3 gets stuck / runs indefinitely #33441

blimmer opened this issue Feb 13, 2025 · 6 comments
Labels
bug This issue is a bug. effort/medium Medium work item – several days of effort p2 package/tools Related to AWS CDK Tools or CLI

Comments

@blimmer
Copy link
Contributor

blimmer commented Feb 13, 2025

Describe the bug

When running:

> yarn cdk gc --unstable gc --type=s3 --rollback-buffer-days=30 --created-buffer-days=10 --verbose

The progress seems to get stuck at 97.92% and doesn't seem to progress afterward. I've let this run for 12 hours and it never proceeds.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

N/A

Expected Behavior

I expect the progress to increase somewhat linearly and eventually complete.

Current Behavior

It seems to hang forever.

Reproduction Steps

Unfortunately, it's not possible for me to provide a repro case for this, since it's dependent on my account stacks, etc. However, here are the logs, which might provide some details:

logs.txt

I keep seeing

Done parsing through stacks

Before the apparent loop begins again.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.178.2 (build 89c49cc)

Framework Version

No response

Node.js Version

v20.18.0

OS

MacOS

Language

TypeScript

Language Version

No response

Other information

No response

@blimmer blimmer added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 13, 2025
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Feb 13, 2025
@BwL1289
Copy link

BwL1289 commented Feb 13, 2025

Linking this as it's related #32742

@pahud
Copy link
Contributor

pahud commented Feb 13, 2025

Thank you for reporting this issue with the CDK garbage collection command. Since this is a new experimental feature (marked with --unstable flag), your feedback is valuable.

Please note that the garbage collection feature is still experimental (hence the --unstable flag). We're actively working on improving its reliability and performance.

@pahud pahud added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Feb 13, 2025
@blimmer
Copy link
Contributor Author

blimmer commented Feb 13, 2025

Yep, I saw the other bug, but since this happened for S3 (the other ticket is for ECR), I filed a separate issue. Thanks!

@sakurai-ryo
Copy link
Contributor

Hi @blimmer
This issue appears to be caused by the same reason as the previous PR.
This patch seems to haven’t been released yet, so please try it again after it’s released.
#32985

@blimmer
Copy link
Contributor Author

blimmer commented Feb 18, 2025

This works now! Thanks

@blimmer blimmer closed this as completed Feb 18, 2025
Copy link

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue is a bug. effort/medium Medium work item – several days of effort p2 package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants