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

feat:[Spanner] CacheSessionPool::maintain deletes sessions older than 28d #5853

Merged
merged 1 commit into from
Feb 22, 2023

Conversation

vishwarajanand
Copy link
Contributor

@vishwarajanand vishwarajanand commented Feb 3, 2023

Potentially fixes: #5827

Changes

  1. Adds a check in maintain() to purge sessions older than 28d.
  2. Also modifies checks in CacheSessionPool::isSessionValid(..)
  3. Other changes necessary to retain ['creation'] param, which is set to time in seconds when session was created and only used to check for expiration.
  4. Relevant additions to system and unit tests

Tests

Both UT and System tests are passing in prod.

Spanner/src/Session/CacheSessionPool.php Outdated Show resolved Hide resolved
Spanner/src/Session/CacheSessionPool.php Outdated Show resolved Hide resolved
Spanner/src/Session/CacheSessionPool.php Outdated Show resolved Hide resolved
@vishwarajanand
Copy link
Contributor Author

@bshaffer I force-pushed to get rid of conventional commit error, due to first commit.

@bshaffer bshaffer added the next release PRs to be included in the next release label Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release PRs to be included in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spanner: Deleted sessions are not removed from the session pool
2 participants