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

Warning count from 1932 to 1842 #1134

Merged
merged 1 commit into from
Jul 26, 2021
Merged

Warning count from 1932 to 1842 #1134

merged 1 commit into from
Jul 26, 2021

Conversation

cbeauchesne
Copy link
Member

See #1133 for more details

@cbeauchesne
Copy link
Member Author

cbeauchesne commented Jul 23, 2021

@tsauerwein by chance, would it possible to have your opinion about this change : https://github.com/c2corg/v6_api/pull/1134/files#diff-bcdcacbeeac9f27f3ad65cda8f9decaee8aa8358a2cc6bf4709d821a2ccd637aR82

I added it because we have a warning saying The Redis backend thread_local_lock parameter should be set to False when distributed_lock is True : https://github.com/sqlalchemy/dogpile.cache/blob/master/dogpile/cache/backends/redis.py#L108

But I have absolutely no idea of its purpose, and it scares me a little bit :)

Do you know if there any side-effect with this parameter ?

@lbesson
Copy link
Member

lbesson commented Jul 24, 2021

I think that comes from one of the (outdated) dependencies. We already have this warning in the master branch and that still works.

@tsauerwein
Copy link
Member

@tsauerwein by chance, would it possible to have your opinion about this change : https://github.com/c2corg/v6_api/pull/1134/files#diff-bcdcacbeeac9f27f3ad65cda8f9decaee8aa8358a2cc6bf4709d821a2ccd637aR82

I added it because we have a warning saying The Redis backend thread_local_lock parameter should be set to False when distributed_lock is True : https://github.com/sqlalchemy/dogpile.cache/blob/master/dogpile/cache/backends/redis.py#L108

But I have absolutely no idea of its purpose, and it scares me a little bit :)

Do you know if there any side-effect with this parameter ?

Checking the dogpile.cache documentation, your change makes sense. The configuration uses distributed_lock=True because the API runs in multiple processes/containers/servers and the lock should be synchronized across all. As I understand it, distributed_lock and thread_local_lock are mutually exclusive. So it would make sense to set thread_local_lock to False.

Copy link
Member

@lbesson lbesson left a comment

Choose a reason for hiding this comment

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

don't want to update bbcode while you're at it? :D

@cbeauchesne
Copy link
Member Author

@lbesson I've a loooooong todo list on API. I'm focusing on the easy one, and on ones that makes dev's life easier, sort of getting a foot in the door in a way :)

@cbeauchesne cbeauchesne merged commit 18f8f33 into master Jul 26, 2021
@cbeauchesne cbeauchesne deleted the decrease-warning-count branch July 26, 2021 08:49
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.

3 participants