-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Tiny shovel-related fixes #5892
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There is a repeatable failure in the Shovel management plugin suite. |
Here is the exception from Common Test:
|
it's the very testcase that I added, that fails, a bit embarrassing. will find the time to fix next week |
These fields were moved to the config map with the introduction of protocol callbacks.
I believe this is rarely visible as the shovel is quickly restarted or removed after termination.
An rpc:call can return `{badrcp, Reason}` with an arbitrary Reason term, so it cannot be passed to rabbit_log:error/1 which expects an atom, string or binary as its argument. This fixes the below crash ``` exception error: no function clause matching logger:do_log_allowed(error, {{'EXIT', {{badmatch, ... in function rabbit_shovel_mgmt:delete_resource/2 (rabbit_shovel_mgmt.erl, line 92) ```
gomoripeti
force-pushed
the
shovel_fixes
branch
from
October 6, 2022 18:22
e7abe74
to
b9f7dc0
Compare
michaelklishin
approved these changes
Oct 8, 2022
michaelklishin
added a commit
that referenced
this pull request
Oct 8, 2022
Tiny shovel-related fixes (backport #5892)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Remove unused fields from shovel_worker state record
These fields were moved to the config map with the introduction of protocol callbacks.
Fix table layout for terminated shovel status
I believe this is rarely visible as the shovel is quickly restarted or removed after termination.
Fix error handling of shovel_management delete/restart shovel
An rpc:call can return
{badrcp, Reason}
with an arbitrary Reason term,so it cannot be passed to rabbit_log:error/1 which expects an atom,
string or binary as its argument.
This fixes the below crash
Types of Changes
What types of changes does your code introduce to this project?
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply.You can also fill these out after creating the PR.
If you're unsure about any of them, don't hesitate to ask on the mailing list.
We're here to help!
This is simply a reminder of what we are going to look for before merging your code.
CONTRIBUTING.md
documentFurther Comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc.