Skip to content

Avoid infinite loop during session garbage collection. #6

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

Merged
merged 1 commit into from
Mar 9, 2016
Merged

Avoid infinite loop during session garbage collection. #6

merged 1 commit into from
Mar 9, 2016

Conversation

btalbot
Copy link
Contributor

@btalbot btalbot commented Mar 9, 2016

This is the same issue as #4 but this PR includes updated spec test.

The GarbageColection#scan method was not properly using the last_item parameter. This causes the #scan to repeatedly rescan the same set of DDB items instead of advancing through the items in the table. If all / many sessions were expired the gc would seem to work since gc deletes old sessions; however, for a real live system, the gc will appear to hang.

…lection#scan method was not properly using the last_item parameter. This causes the #scan to repeatedly rescan the same set of DDB items instead of advancing through the items in the table. If all / many sessions were expired the gc would seem to work since gc deletes old sessions; however, for a real live system, the gc will appear to hang.
@awood45 awood45 added the bug label Mar 9, 2016
@awood45
Copy link
Contributor

awood45 commented Mar 9, 2016

Nice catch! Pretty clear that this was the intent all along, so this looks like a no-brainer. Thanks!

awood45 added a commit that referenced this pull request Mar 9, 2016
Avoid infinite loop during session garbage collection.
@awood45 awood45 merged commit 2369432 into aws:master Mar 9, 2016
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