Skip to content
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

ARTEMIS-1180: Artemis is logging warnings during server shut down #1289

Closed
wants to merge 1 commit into from

Conversation

treblereel
Copy link
Contributor

@@ -719,7 +719,7 @@ void slowConsumerDetected(String sessionID,
@Message(id = 222094, value = "Bridge unable to send message {0}, will try again once bridge reconnects", format = Message.Format.MESSAGE_FORMAT)
void bridgeUnableToSendMessage(@Cause Exception e, MessageReference ref);

@LogMessage(level = Logger.Level.WARN)
@LogMessage(level = Logger.Level.INFO)
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the difference? just the [WARN] on the logs?

Why is that an issue?

Shouldn't the proper fix be.. if it's shutting down.. log.debug, if !... log.warn?

or this is about client nodes?

Copy link
Contributor

Choose a reason for hiding this comment

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

We had a talk on IRC about this:

dtikhomi: customer is parsing logs, and in that case warn is false alarm for him
[09:42am] clebert: but the thing is...
[09:42am] clebert: when that issue is actually happening for a bad cause
[09:42am] clebert: he won’t be alarmed for the real issue
[09:42am] clebert: so .. that’s my concern
[09:42am] clebert: nodes stop because of network outages...
[09:43am] clebert: he won’t get notice
[09:43am] dtikhomi: ohhh, i got it
[09:43am] clebert: or missing connectiong because of outages
[09:43am] clebert: u agree with me?
[09:43am] dtikhomi: plz dont close PR i will update it
[09:43am] dtikhomi: yeap, you right
[09:44am] clebert: but do you think you know how to fix it with an easy fix?
[09:44am] clebert: I thought it would be more substantial for a proper fix
[09:44am] clebert: (like… is Shutting Down somewhere… ignore it)
[09:44am] clebert: that’s actually the fix
[09:44am] clebert: server.isStopping
[09:44am] clebert: —> don’t log it
[09:44am] clebert: or log.debug
[09:44am] dtikhomi: yeap, i wonna try
[09:45am] clebert: ok.. thanks a lot...

@@ -606,7 +610,8 @@ public void connectionFailed(final ActiveMQException me, boolean failedOver) {

@Override
public void connectionFailed(final ActiveMQException me, boolean failedOver, String scaleDownTargetNodeID) {
ActiveMQServerLogger.LOGGER.bridgeConnectionFailed(failedOver);
if(server.isStarted())
ActiveMQServerLogger.LOGGER.bridgeConnectionFailed(failedOver);
Copy link
Contributor

Choose a reason for hiding this comment

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

seems out of alignment to me.. this would fail checkstyle apparently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants