-
Notifications
You must be signed in to change notification settings - Fork 172
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
[JBTM-3541] adjustments on LRA log messages #1909
[JBTM-3541] adjustments on LRA log messages #1909
Conversation
Started testing this pull request with LRA profile: http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/232/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are you testing that the debug output is produced, don't we need a log4j or some other dependency such as:
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${version.log4j}</version>
<scope>provided</scope>
</dependency>
Also there is at least one other example using LRARecord so we should either stay with LRARecord or we should change them all.
And the test for debug on the stacktrace should be inside the test for info on the previous line.
And while you are looking at the logging, can you also change the following:
- LRALogger.logger.tracef("%s: Participant id: %s, LRA id: %s, reason: %s, state: %s, accepted: %b",
+ LRALogger.logger.tracef("%s: LRA id: %s, Participant id: %s, reason: %s, state: %s, accepted: %b",
LRA profile tests passed - Job complete http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/232/ |
There are also a number of references to |
b23d6b5
to
c441a4c
Compare
Thank you for review. I tried to address your notes (comments above). Please, take another look. |
Started testing this pull request with LRA profile: http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/233/ |
LRA profile tests failed (http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/233/): LRA Test failed with failures in arq profile |
I'm going to rerun the CI. The failures is |
Started testing this pull request with LRA profile: http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/234/ |
LRA profile tests passed - Job complete http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/234/ |
how are you testing that the debug output is produced?
The code logs an info message and then immediately on the next line it checks for debug log level so it makes more sense, in this instance of the logging, to surround the info log message with a level check; if the log level is above info and you check for info level then your the test for debug enabled will be skipped if the info message is inside an
Not sure what you are saying here but my point was that the method names refer to LRARecord and this PR is all about cleaning/expunging references to |
c441a4c
to
881c710
Compare
We do not test if the debug output is produced. It's not done in any part of the Narayana code or WildFly. I don't think it's necessary. Do you consider it should be tested here?
I changed the code to have the check for info level which wraps the check for debug level.
I understand. So I think the code could be adjusted in this way now. |
Started testing this pull request with LRA profile: http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/236/ |
LRA profile tests passed - Job complete http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=LRA,jdk=jdk8.latest,label=linux/236/ |
No but I wanted to know how you are verifying the log output (how do you enable, for example, trace level logging)? |
QA_JTS_OPENJDKORB profile tests failed (http://narayanaci1.eng.hst.ams2.redhat.com/job/btny-pulls-narayana/PROFILE=QA_JTS_OPENJDKORB,jdk=jdk8.latest,label=linux/238/): Narayana rebase on master failed. Please rebase it manually |
@mmusgrov oh, I see, sorry I didn't understand. |
https://issues.redhat.com/browse/JBTM-3541
LRA
!MAIN !CORE !QA_JTA !QA_JTS_JDKORB !QA_JTS_OPENJDKORB !QA_JTS_JACORB !BLACKTIE !XTS !PERF NO_WIN !RTS !AS_TESTS !TOMCAT !JACOCO