-
Notifications
You must be signed in to change notification settings - Fork 22
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
Log is misleading when a post fails #1325
Comments
The problem is here: sarracenia/sarracenia/flowcb/post/message.py Lines 35 to 45 in a4af0e2
When putNewMessage returns False, this code does the right thing. But if putNewMessage throws an exception it doesn't get handled and I the message just stays in It should be a pretty easy fix. |
(Either we handle exceptions in the post/message.py post method, or fix AMQP and all other moth classes' putNewMessage to handle exceptions internally and always return False, or maybe both) |
( Including this in this issue as it has to do with logging being misintepreted. ) When a file fails to be
I think the problem is that the try/except statement in here sarracenia/sarracenia/flow/__init__.py Lines 2656 to 2672 in da9dd37
we should be checking if the |
the intermittent failures of the flakey_broker flow test in many contexts are likely due to over counting of successful posts because of this bug. |
Related to/witnessed in #1322 and #1289.
When a message is not posted successfully, the log plugin still logs a message saying the message was posted. If you are very familiar with sr3, you might notice that it says
... posted to a file ...
instead of the correct... posted to exchange: ... topic: ... a file ...
.This is really misleading and confusing, especially if you are not very familiar with sr3. When we are grepping through logs, we always search for the keyword
posted
.When there is a failure posting, we should not log a message saying the file was posted.
vs a successful post to an AMQP broker:
The text was updated successfully, but these errors were encountered: