Skip to content

Rails 7.1 deprecated pool_size in AS::Cache::Store/removed in 7.2 #23507

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
Jul 16, 2025

Conversation

jrafanie
Copy link
Member

@jrafanie jrafanie commented Jul 11, 2025

Note, ManageIQ::Session goes through ActionDispatch::Session::SessionObject.
TokenManager#token_store goes through ActiveSupport::Cache::MemCacheStore.

This commit resolves the deprecated and removed support for pool_size in AS::Cache::Store in 7.2.

Followup to #23424

Before:

vmdb(dev)> TokenManager.new.send(:token_store).instance_variable_get(:@data).size
=> 5
vmdb(dev)> ManageIQ::Session.store.instance_variable_get(:@data).size
=> 10

After:

vmdb(dev)> TokenManager.new.send(:token_store).instance_variable_get(:@data).size
=> 10
vmdb(dev)> ManageIQ::Session.store.instance_variable_get(:@data).size
=> 10

Note, ManageIQ::Session goes through ActionDispatch::Session::SessionObject
TokenManager#token_store goes through ActiveSupport::Cache::MemCacheStore.

This commit resolves the deprecated and removed support for pool_size
in AS::Cache::Store in 7.2

Before:

```
vmdb(dev)> TokenManager.new.send(:token_store).instance_variable_get(:@DaTa).size
=> 5
vmdb(dev)> ManageIQ::Session.store.instance_variable_get(:@DaTa).size
=> 10
```

After:

```
vmdb(dev)> TokenManager.new.send(:token_store).instance_variable_get(:@DaTa).size
=> 10
vmdb(dev)> ManageIQ::Session.store.instance_variable_get(:@DaTa).size
=> 10
```
@jrafanie jrafanie force-pushed the fix-pool-size-in-token-store branch from 2b1561c to 37b5d9d Compare July 11, 2025 22:31
@miq-bot
Copy link
Member

miq-bot commented Jul 11, 2025

Checked commit jrafanie@37b5d9d with ruby 3.1.7, rubocop 1.56.3, haml-lint 0.64.0, and yamllint
1 file checked, 0 offenses detected
Everything looks fine. ⭐

@kbrock kbrock merged commit 02a7f61 into ManageIQ:master Jul 16, 2025
8 checks passed
@jrafanie jrafanie deleted the fix-pool-size-in-token-store branch July 16, 2025 13:08
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