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

fix: deletes queue messages by chunks #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cezar-tech
Copy link
Contributor

@cezar-tech cezar-tech commented Dec 11, 2024

  • errors were observed while the housekeeper attempt to clear queues, the biggest doc didnt have the mongo max of 16MB, so the whole query result was the problem.

"queue/queue.go:413","message":"Error removing elements from storage: rrror deleting storage elements: an inserted document is too large"

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.07%. Comparing base (5a2182c) to head (c5b5203).
Report is 27 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main      #58       +/-   ##
===========================================
- Coverage   82.11%   68.07%   -14.04%     
===========================================
  Files          26       30        +4     
  Lines        3696     4840     +1144     
===========================================
+ Hits         3035     3295      +260     
- Misses        519     1392      +873     
- Partials      142      153       +11     
Files with missing lines Coverage Δ
internal/queue/storage/mongo_storage.go 80.70% <100.00%> (+0.98%) ⬆️

... and 4 files with indirect coverage changes

@cezar-tech cezar-tech force-pushed the main branch 2 times, most recently from 9a9513c to 2d4957e Compare December 11, 2024 18:59
* errors were observed while the housekeeper attempt to clear queues, the biggest doc didnt have the mongo max of 16MB, so the whole query result was the problem.

Signed-off-by: Cézar <[email protected]>
@cezar-tech cezar-tech changed the title fix: deletes queues by chunks fix: deletes queue messages by chunks Dec 11, 2024
* errors were observed while the housekeeper attempt to clear queues, the biggest doc didnt have the mongo max of 16MB, so the whole query result was the problem.

Signed-off-by: Cézar <[email protected]>
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