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

Too many files in bucket causes endless looping #1

Open
fredx opened this issue Jan 5, 2011 · 0 comments
Open

Too many files in bucket causes endless looping #1

fredx opened this issue Jan 5, 2011 · 0 comments

Comments

@fredx
Copy link

fredx commented Jan 5, 2011

If I don't clean up old ASSET_VERSION directories in my bucket, eventually I get to a point where cdn_fu appears to get into an endless loop and never uploads anything. I tracked this to the method:

CloudfrontUploader#populate_existing_asset_checksums

If the objects.size == MAX_KEYS it enters the loop. When this happens, the method bucket.objects always returns the same set. I've verified this by printing the result on each iteration.

On another (but related) note, is there a reason the uploader has to scan all the existing files even if they are under a different root path (ASSET_VERSION)? As the number of old versions increases, deploys take longer and longer.

using rails 2.3.5 with aws-s3 --version=0.6.2

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

No branches or pull requests

1 participant