Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[lock] Prevent user serializing the key when store does not support it. #38395

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
Oct 4, 2020

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Oct 3, 2020

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets /
License MIT
Doc PR /

Some store relies on connection with the running process. ie. kernel relaease flock/semaphore, or zookeeper neeeds a connection to the database.

When the users tries to serialize the key to send it to another process, they are not aware that they lose the lock.

This PR throws an exception in that situation.

@jderusse jderusse force-pushed the lock-unserializable branch from df367b1 to 1ec0630 Compare October 3, 2020 12:03
@fabpot
Copy link
Member

fabpot commented Oct 4, 2020

Thank you @jderusse.

@fabpot fabpot merged commit 3b524f6 into symfony:master Oct 4, 2020
@fabpot fabpot mentioned this pull request Oct 5, 2020
fabpot added a commit that referenced this pull request Oct 7, 2020
This PR was merged into the 5.x branch.

Discussion
----------

[lock] Mark Key unserializable whith PgsqlStore

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | /
| License       | MIT
| Doc PR        | /

Marks key unserializable #38395 with the new PgsqlStore #38346

Commits
-------

eb934e9 Mark Key unserializable whith PgsqlStore
@jderusse jderusse deleted the lock-unserializable branch October 15, 2020 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants