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

[6.0] feat: remove MAINTAIN_SESSION_POOL from SessionNotFoundErrorMode #130

Merged
merged 3 commits into from
Aug 22, 2023

Conversation

taka-oyama
Copy link
Collaborator

This is no longer needed since we now know running maintain doesn't remove any stale sessions that are "inUse".

googleapis/google-cloud-php#6284 (comment)

@taka-oyama taka-oyama added the enhancement New feature or request label Aug 17, 2023
@taka-oyama taka-oyama added this to the 6.0 milestone Aug 17, 2023
@taka-oyama taka-oyama self-assigned this Aug 17, 2023
@taka-oyama taka-oyama requested a review from kt81 August 17, 2023 08:26
@@ -282,30 +282,14 @@ By default, laravel-spanner uses [Filesystem Cache Adapter](https://symfony.com/
There are a few cases when a 'Session not found' error can
[happen](https://cloud.google.com/spanner/docs/sessions#handle_deleted_sessions):

- Scripts that idle too long - for example, a [Laravel queue worker](https://laravel.com/docs/9.x/queues#the-queue-work-command)
or anything that doesn't call Spanner frequently enough (more than once an hour).
- The session is more than 28 days old.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed since this is no longer true.

@taka-oyama taka-oyama changed the title feat: remove MAINTAIN_SESSION_POOL from SessionNotFoundErrorMode [6.0] feat: remove MAINTAIN_SESSION_POOL from SessionNotFoundErrorMode Aug 18, 2023
@taka-oyama taka-oyama force-pushed the feature/remove-maintain-mode branch from 959c55b to 14ee9d7 Compare August 22, 2023 04:31
src/Connection.php Outdated Show resolved Hide resolved
@taka-oyama taka-oyama force-pushed the feature/remove-maintain-mode branch from 49f4f36 to 21d9fef Compare August 22, 2023 08:31
@taka-oyama taka-oyama merged commit 5a97ccb into master Aug 22, 2023
@taka-oyama taka-oyama deleted the feature/remove-maintain-mode branch August 22, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants