Skip to content

Failure in spec/lib/gitlab/patch/redis_cache_store_spec.rb | Gitlab::Patch::RedisCacheStore#read_multi_mget when cache is feature flag cache store behaves like reading using cache stores when reading large amount of keys when GITLAB_REDIS_CLUSTER_PIPEL...

Test metadata (don't modify)

Field Value
File URL spec/lib/gitlab/patch/redis_cache_store_spec.rb#L96
Filename spec/lib/gitlab/patch/redis_cache_store_spec.rb
Description Gitlab::Patch::RedisCacheStore#read_multi_mget when cache is feature flag cache store behaves like reading using cache stores when reading large amount of keys when GITLAB_REDIS_CLUSTER_PIPELINE_BATCH_LIMIT is larger than the default behaves like read large amount of keys breaks the input into 2 chunks for redis cluster
Test level unit
Hash af71331f4fe9d5680eb9ce2453b4de3c5b915ccc4
Duration 0.68 seconds
Expected duration < 27.12 seconds

Stack trace

Failure/Error:
  Gitlab::Redis::CrossSlot::Pipeline.new(conn).pipelined do |p|
    subset.each { |key| p.get(key) }
  end

  (Gitlab::Redis::CrossSlot::Pipeline (class)).new(#<Redis client v4.8.0 for redis://172.22.0.3:7001/0 redis://172.22.0.3:7002/0 redis://172.22.0.3:7003/0>)
      expected: 2 times with any arguments
      received: 3 times with arguments: (#<Redis client v4.8.0 for redis://172.22.0.3:7001/0 redis://172.22.0.3:7002/0 redis://172.22.0.3:7003/0>)
Shared Example Group: "read large amount of keys" called from ./spec/lib/gitlab/patch/redis_cache_store_spec.rb:80
Shared Example Group: "reading using cache stores" called from ./spec/lib/gitlab/patch/redis_cache_store_spec.rb:96

Reports (11)

  1. 2023-12-17: https://gitlab.com/gitlab-org/gitlab/-/jobs/5767768109 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1109494207)
  2. 2023-12-17: https://gitlab.com/gitlab-org/gitlab/-/jobs/5767768139 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1109494207)
  3. 2023-12-21: https://gitlab.com/gitlab-org/gitlab/-/jobs/5799219589 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1115097390)
  4. 2023-12-21: https://gitlab.com/gitlab-org/gitlab/-/jobs/5805621915 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1116128604)
  5. 2023-12-24: https://gitlab.com/gitlab-org/gitlab/-/jobs/5815425591 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1117995012)
  6. 2023-12-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/5820236989 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1119003447)
  7. 2024-01-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/6023114331 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1152846912)
  8. 2024-01-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/6023237510 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1152864096)
  9. 2024-01-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/6023449340 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1152891277)
  10. 2024-01-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/6023810327 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1152846912)
  11. 2024-01-26: https://gitlab.com/gitlab-org/gitlab/-/jobs/6024183806 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1153008238)
Edited by 🤖 GitLab Bot 🤖