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

[master] Extended Thread logging #1076

Merged

Conversation

rfelcman
Copy link
Contributor

This PR contains extension to logging code.
Main purpose is display info if cached entity is picked by another thread and WorkManager is called in different threads.
This logging is by default disabled and must be enabled by persistence properties
Major changes are:

  • new thread log category specified in org.eclipse.persistence.logging.LogCategory and org.eclipse.persistence.logging.SessionLog
  • Two new persistence unit properties eclipselink.thread.extended.logging to enable this logging and eclipselink.thread.extended.logging.threaddump to add to the log output threads stack trace
  • new log messages are called from org.eclipse.persistence.internal.sessions.UnitOfWorkImpl

Signed-off-by: Radek Felcman [email protected]

Signed-off-by: Radek Felcman <[email protected]>
@rfelcman rfelcman merged commit f202761 into eclipse-ee4j:master Apr 19, 2021
rfelcman added a commit to rfelcman/eclipselink that referenced this pull request Apr 20, 2021
This commit contains extension to logging code.
Main purpose is display info if cached entity is picked by another thread and WorkManager is called in different threads.
This logging is by default disabled and must be enabled by persistence properties
Major changes are:

   - new thread log category specified in org.eclipse.persistence.logging.LogCategory and org.eclipse.persistence.logging.SessionLog
   - Two new persistence unit properties eclipselink.thread.extended.logging to enable this logging and eclipselink.thread.extended.logging.threaddump to add to the log output threads stack trace
   - new log messages are called from org.eclipse.persistence.internal.sessions.UnitOfWorkImpl

Signed-off-by: Radek Felcman <[email protected]>
(cherry picked from commit f202761)
@rfelcman rfelcman deleted the bug_jpa_559307_DeadLockObjectBuilderv4.1 branch April 21, 2021 08:45
rfelcman added a commit to rfelcman/eclipselink that referenced this pull request May 28, 2021
…o - backport from 2.6 and master

This is backport from 2.6 PRs eclipse-ee4j#1080, eclipse-ee4j#1101, eclipse-ee4j#1121 and master eclipse-ee4j#1076.

This commit contains extension to logging code.
Main purpose is display info if cached entity is picked by another thread and WorkManager is called in different threads.
Log cached item lifecycle (insert, refresh, remove, invalidate) from cache.
This logging is by default disabled and must be enabled by persistence properties
Major changes are:

- new thread log category specified in "org.eclipse.persistence.logging.LogCategory" and "org.eclipse.persistence.logging.SessionLog"
- three new persistence unit properties "eclipselink.cache.extended.logging" about cached item lifecycle, "eclipselink.thread.extended.logging" to enable this logging and "eclipselink.thread.extended.logging.threaddump" to add to the log output threads stack trace
- new log messages are called from "org.eclipse.persistence.internal.sessions.UnitOfWorkImpl"

Signed-off-by: Radek Felcman <[email protected]>
rfelcman added a commit to rfelcman/eclipselink that referenced this pull request May 30, 2021
…o - backport from 2.6 and master

This is backport from 2.6 PRs eclipse-ee4j#1080, eclipse-ee4j#1101, eclipse-ee4j#1121 and master eclipse-ee4j#1076.

This commit contains extension to logging code.
Main purpose is display info if cached entity is picked by another thread and WorkManager is called in different threads.
Log cached item lifecycle (insert, refresh, remove, invalidate) from cache.
This logging is by default disabled and must be enabled by persistence properties
Major changes are:

- new thread log category specified in "org.eclipse.persistence.logging.LogCategory" and "org.eclipse.persistence.logging.SessionLog"
- three new persistence unit properties "eclipselink.cache.extended.logging" about cached item lifecycle, "eclipselink.thread.extended.logging" to enable this logging and "eclipselink.thread.extended.logging.threaddump" to add to the log output threads stack trace
- new log messages are called from "org.eclipse.persistence.internal.sessions.UnitOfWorkImpl"

Signed-off-by: Radek Felcman <[email protected]>
rfelcman added a commit that referenced this pull request Jun 1, 2021
…o - backport from 2.6 and master (#1174)

This is backport from 2.6 PRs #1080, #1101, #1121 and master #1076.

This commit contains extension to logging code.
Main purpose is display info if cached entity is picked by another thread and WorkManager is called in different threads.
Log cached item lifecycle (insert, refresh, remove, invalidate) from cache.
This logging is by default disabled and must be enabled by persistence properties
Major changes are:

- new thread log category specified in "org.eclipse.persistence.logging.LogCategory" and "org.eclipse.persistence.logging.SessionLog"
- three new persistence unit properties "eclipselink.cache.extended.logging" about cached item lifecycle, "eclipselink.thread.extended.logging" to enable this logging and "eclipselink.thread.extended.logging.threaddump" to add to the log output threads stack trace
- new log messages are called from "org.eclipse.persistence.internal.sessions.UnitOfWorkImpl"

Signed-off-by: Radek Felcman <[email protected]>
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.

2 participants