Skip to content

Conversation

@Luccuo
Copy link

@Luccuo Luccuo commented May 26, 2025

No description provided.

@Luccuo
Copy link
Author

Luccuo commented May 26, 2025

Added tube_truncate method to clear tube

@Luccuo Luccuo force-pushed the sharded-queue-clear branch from b76a7dc to aca1d1e Compare May 26, 2025 12:47
@Luccuo Luccuo force-pushed the sharded-queue-clear branch from aca1d1e to f0c4049 Compare May 27, 2025 07:25
Copy link
Collaborator

@palage4a palage4a left a 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.

@Luccuo Luccuo force-pushed the sharded-queue-clear branch from f0c4049 to 98c0e09 Compare June 11, 2025 12:15
@Luccuo Luccuo force-pushed the sharded-queue-clear branch 2 times, most recently from 2bc2bea to 35f44c6 Compare June 26, 2025 15:53
@tecl1s tecl1s requested a review from palage4a June 30, 2025 11:28
@palage4a
Copy link
Collaborator

palage4a commented Jul 2, 2025

@Luccuo rebase your branch on master for fixing CI/CD, please.

@Luccuo Luccuo force-pushed the sharded-queue-clear branch from 35f44c6 to 5f5a1a6 Compare July 4, 2025 12:58
Copy link
Collaborator

@palage4a palage4a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Copy link
Collaborator

@palage4a palage4a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@oleg-jukovec oleg-jukovec left a 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.

Copy link
Contributor

@oleg-jukovec oleg-jukovec left a 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

@Luccuo
Copy link
Author

Luccuo commented Jul 15, 2025

@oleg-jukovec what metrics do you want to check? truncate metrics are checked in simple_test

@oleg-jukovec
Copy link
Contributor

oleg-jukovec commented Jul 15, 2025

@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 truncate call count metric.

@Luccuo Luccuo force-pushed the sharded-queue-clear branch from 5f5a1a6 to 33636a8 Compare July 22, 2025 08:38
The tube_truncate method was created to clean tubes, as well as the truncate method on the router to call it
@Luccuo Luccuo force-pushed the sharded-queue-clear branch from 33636a8 to 415ebc5 Compare July 22, 2025 14:46
Copy link
Collaborator

@palage4a palage4a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. LGTM.

@palage4a palage4a requested a review from oleg-jukovec July 23, 2025 15:15
Copy link
Contributor

@oleg-jukovec oleg-jukovec left a 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!

@palage4a palage4a merged commit 850c9b7 into tarantool:master Jul 24, 2025
4 checks passed
palage4a added a commit that referenced this pull request Jul 28, 2025
palage4a added a commit that referenced this pull request Jul 28, 2025
palage4a added a commit that referenced this pull request Jul 28, 2025
palage4a added a commit that referenced this pull request Aug 5, 2025
palage4a added a commit that referenced this pull request Aug 5, 2025
palage4a added a commit that referenced this pull request Aug 5, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
palage4a added a commit that referenced this pull request Aug 6, 2025
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.

3 participants