-
Notifications
You must be signed in to change notification settings - Fork 4k
Feature/support if-empty and if-unused flags in quorum queues #14906
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
…into feature/qq-delete-isEmpty-flag
|
@ikss this is not Elixir that you are modifying, this is Erlang. Did you use an LLM to generate these changes? If so, always disclose that because some companies may or may not be legally allowed to accept such contributions. In any case, we need all first time contributors to digitally request and sign a CLA, which it less than two pages long. |
|
Finally, as another maintainer pointed out to me: was removed in this PR without any related changes that I see. Are you sure that |
|
Hello @michaelklishin , thank you for your comments
Yes, I iterate on this PR with Claude Code, since my primary toolstack doesn't include Erlang and it's ecosystem. I understand how such LLM-based PRs could bloat opensource maintainers and I'm sorry for not putting it in description
I did it first thing before creating a PR, so I checked that checkbox in the PR
I checked in the git history when this comment was added (in the very first initial commit in 2018) and what changes were done after that. And to my best understanding consumers tracking was added in later PRs and last time changed in Quorum queues v4 implementation where consumer priorities were added for SAC, so I assumed that consumer state should be up to date for supporting those features I wanted to add support for if-empty flag only at first, because in our usecase (creating and deleting a lot of quorum queues dynamically) we would benefit from it. So if consumer state tracking need some further adjustments is it OK to create a PR only for if-empty? |
|
Sorry, we won't accept this PR. Not only there are questions to the code produced here and the branch is tainted by a |
Proposed Changes
Add support for if-empty and if-unused flag for quorum queues deletion
These flags are supported for classic queues, but for quorum queues they are not supported.
Implementation looks pretty straightforward and tests in ct-quorum_queue suite are green, but I'm not proficient in elixir and this project. So please advice how it can be done better.
Types of Changes
What types of changes does your code introduce to this project?
Put an
xin the boxes that applyChecklist
Put an
xin the boxes that apply.You can also fill these out after creating the PR.
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.mddocumentFurther Comments
One question still bothers me that now state function will return ok even on error/timeout which may cause deletion of queue in which state we're not sure. Please suggest how to tackle it if it should be