Skip to content

[ARTEMIS-1770] Log warning instead of stacktrace while shutdown#1990

Merged
asfgit merged 1 commit into
apache:masterfrom
rstancel:ARTEMIS-1770
Apr 5, 2018
Merged

[ARTEMIS-1770] Log warning instead of stacktrace while shutdown#1990
asfgit merged 1 commit into
apache:masterfrom
rstancel:ARTEMIS-1770

Conversation

@rstancel

@rstancel rstancel commented Apr 3, 2018

Copy link
Copy Markdown
Contributor

@rstancel

rstancel commented Apr 3, 2018

Copy link
Copy Markdown
Contributor Author

While clear shutdown it makes no sence to throw any exception. It should be sufficient just to log message about whats happening.

import org.apache.activemq.artemis.api.core.ActiveMQExceptionType;
import org.apache.activemq.artemis.api.core.Message;
import org.apache.activemq.artemis.api.core.SimpleString;
import org.apache.activemq.artemis.api.core.*;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Star imports like this are not allowed by our checkstyle config. You'll need to change this for the PR build to pass.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jbertram Fixed.

@rstancel rstancel force-pushed the ARTEMIS-1770 branch 3 times, most recently from 515002f to 688d63b Compare April 4, 2018 06:33
@rstancel

rstancel commented Apr 4, 2018

Copy link
Copy Markdown
Contributor Author

Can someone please run retest? I have the same issue on Travis as this PR: #1985 and I think it has nothing to do with my PR

@clebertsuconic

Copy link
Copy Markdown
Contributor

@rstancel looking :#1991

try {
sessionContext.xaEnd(xid, flags);
} catch (ActiveMQNotConnectedException ex) {
ActiveMQClientLogger.LOGGER.connectionClosedWarn(ex.getType(), ex.getMessage());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you at least keep a logger.debug(ex.getMessage(), ex) here?

This way if a developer ever needs to debug on why.. it would give the developer more information?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

and as I requested you this small change.. can you rebase against master? that would help me to find that pesky AIO failure on travis.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

4 participants