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

Handle evicted meta key scenario #412

Merged
merged 4 commits into from
Oct 3, 2024
Merged

Handle evicted meta key scenario #412

merged 4 commits into from
Oct 3, 2024

Conversation

FZambia
Copy link
Member

@FZambia FZambia commented Sep 30, 2024

Relates centrifugal/centrifugo#888

Currently when stream meta key not found (evicted by LRU/LFU strategies), Centrifuge returns an error:

The ID specified in XADD is equal or smaller than the target stream top item

Until stream expires. We handle this scenario here by deleting current stream - clients with recovery/positioning will be unsubscribed with insufficient state reason (because epoch changes).

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.35%. Comparing base (605848e) to head (06c1f82).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #412      +/-   ##
==========================================
- Coverage   81.37%   81.35%   -0.02%     
==========================================
  Files          40       40              
  Lines        7204     7204              
==========================================
- Hits         5862     5861       -1     
- Misses        966      967       +1     
  Partials      376      376              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@FZambia FZambia merged commit f6464ce into master Oct 3, 2024
7 checks passed
@FZambia FZambia deleted the handle_evicted_meta branch October 3, 2024 15:48
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.

1 participant