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

PAYARA-4197 Always print rollback+timeout warning #4323

Merged
merged 1 commit into from
Nov 14, 2019
Merged

PAYARA-4197 Always print rollback+timeout warning #4323

merged 1 commit into from
Nov 14, 2019

Conversation

dmatej
Copy link
Contributor

@dmatej dmatej commented Nov 13, 2019

Description

  • print warning about timeout also in a case when there is more serious error if the tx timeouted too,
  • when some bean tried to use timeouted transacion, a non-checked exception
    was thrown and it shadowed the original cause of rollback - the warning
    wasn't printed then. Now it is.

Important Info

Dependant PRs

TBD (there will be done)

Testing

New tests

See future push in #4263 with integrated test case.

Testing Performed

Manual using the JIRA example.

Test suites executed

None of following yet:

  • Quicklook
  • Payara Samples
  • Java EE7 Samples
  • Java EE8 Samples
  • Payara Private Tests
  • Payara Microprofile TCKs Runner
  • Jakarta TCKs
  • Mojarra
  • Cargo Tracker

Notes for Reviewers

The solution was designed after refactoring done in another PR, because present logging is not much useful and is rather confusing. But refactoring might introduce new errors and will need to pass at least TCK/EJB and TCK/JTA tests. So I created this minimal PR and the refactoring PR will follow.

- print warning about timeout also in a case when there is more serious error if the tx timeouted too,
- when some bean tried to use timeouted transacion, a non-checked exception
  was thrown and it shadowed the original cause of rollback - the warning
  wasn't printed then. Now it is.
@dmatej dmatej self-assigned this Nov 13, 2019
@dmatej
Copy link
Contributor Author

dmatej commented Nov 13, 2019

Jenkins test please

@dmatej dmatej merged commit 6b23276 into payara:master Nov 14, 2019
@dmatej dmatej deleted the PAYARA-4197-print-timeout-warnings-also-for-exceptions branch November 14, 2019 17:20
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