-
Notifications
You must be signed in to change notification settings - Fork 6
Add truncate method support #78
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
Conversation
|
Added tube_truncate method to clear tube |
b76a7dc to
aca1d1e
Compare
aca1d1e to
f0c4049
Compare
palage4a
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
Method truncate seems to me very 'infrastructure`-like, not for producation usage.
Can you provide some use cases into PR description?
Also, api methods should be tested. You can add an integration test in simple_test.lua.
f0c4049 to
98c0e09
Compare
2bc2bea to
35f44c6
Compare
|
@Luccuo rebase your branch on master for fixing CI/CD, please. |
35f44c6 to
5f5a1a6
Compare
palage4a
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests failed: https://github.com/tarantool/sharded-queue/actions/runs/16074336667/job/45535555077?pr=78
Fix them, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch. Please fix red tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to make sure that the metrics for the call are working.
Please, add a test for the truncate method:
https://github.com/tarantool/sharded-queue/blob/master/test/metrics_test.lua
|
@oleg-jukovec what metrics do you want to check? truncate metrics are checked in simple_test |
You checked the queue.statistics result, but not the |
5f5a1a6 to
33636a8
Compare
The tube_truncate method was created to clean tubes, as well as the truncate method on the router to call it
33636a8 to
415ebc5
Compare
palage4a
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM.
oleg-jukovec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the patch!
No description provided.