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

No request in progress #966

Closed
jaredmoody opened this issue Jul 10, 2023 · 2 comments · Fixed by #983
Closed

No request in progress #966

jaredmoody opened this issue Jul 10, 2023 · 2 comments · Fixed by #983

Comments

@jaredmoody
Copy link

jaredmoody commented Jul 10, 2023

I'm seeing this error pop up in my logs intermittently, always with this jbuilder template:

json.array! @projects, partial: 'project', as: :project, cached: ->(project) { [project.location, project] }

Recently, this template was changed, and the error started after changing cached: true to what it is above.

Abbreviated stacktrace:

vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/protocol/connection_manager.rb:107:in `confirm_in_progress!': [Dalli] No request in progress. This may be a bug in Dalli. (ActionView::Template::Error)
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/protocol/base.rb:179:in `verify_pipelined_state'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/protocol/base.rb:75:in `pipeline_response_setup'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:81:in `finish_query_for_server'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:66:in `block in finish_queries'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:62:in `each'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:62:in `finish_queries'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:35:in `setup_requests'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:20:in `block in process'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/ring.rb:78:in `lock'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/pipelined_getter.rb:19:in `process'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/client.rb:108:in `block in get_multi'
    from vendor/bundle/ruby/3.0.0/gems/dalli-3.2.5/lib/dalli/client.rb:107:in `get_multi'
    from vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.7.4/lib/active_support/cache/mem_cache_store.rb:165:in `block in read_multi_entries'
@jaredmoody jaredmoody changed the title No request in progress. This may be a bug in Dalli. No request in progress Jul 10, 2023
@goyal
Copy link

goyal commented Aug 30, 2023

I am getting the same error quite a few times.
Did you happen to find any resolution yet?

@jaredmoody
Copy link
Author

Getting no response and not knowing how to debug this library myself, I resolved by switching from memcached to redis for our cache store and not using this library any longer 🤷

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 a pull request may close this issue.

2 participants