You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "rishabhdaim (via GitHub)" <gi...@apache.org> on 2024/04/04 13:28:29 UTC
[PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
rishabhdaim opened a new pull request, #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on code in PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#discussion_r1552193207
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollector.java:
##########
@@ -1613,8 +1636,8 @@ private int removeUnusedPropertyEntries(NodeDocument doc,
// could be due to node not existing or current value being in a split
// doc - while the former is unexpected, the latter might happen.
// in both cases let's skip this property
- if (log.isDebugEnabled()) {
- log.debug("removeUnusedPropertyEntries : no visible revision for property {} in doc {}",
+ if (DETAILED_GC_LOG.isDebugEnabled()) {
+ DETAILED_GC_LOG.debug("removeUnusedPropertyEntries : no visible revision for property {} in doc {}",
Review Comment:
I guess we should decide how we treat property names - but this one is similar to the others and I think it should be log.trace
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "rishabhdaim (via GitHub)" <gi...@apache.org>.
rishabhdaim commented on PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#issuecomment-2039298688
Created a separate jira for audit logger OAK-10753
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on code in PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#discussion_r1552193622
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollector.java:
##########
@@ -1664,21 +1687,22 @@ public void close() {
public void removeGarbage(final VersionGCStats stats) {
if (updateOpList.isEmpty() && orphanOrDeletedRemovalMap.isEmpty()) {
- if (log.isDebugEnabled() || isDetailedGCDryRun) {
- log.debug("Skipping removal of detailed garbage, cause no garbage detected");
+ if (DETAILED_GC_LOG.isDebugEnabled() || isDetailedGCDryRun) {
+ DETAILED_GC_LOG.debug("Skipping removal of detailed garbage, cause no garbage detected");
Review Comment:
is this needed in the audit?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "rishabhdaim (via GitHub)" <gi...@apache.org>.
rishabhdaim merged PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on code in PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#discussion_r1552185203
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollector.java:
##########
@@ -1048,8 +1061,9 @@ public void collectGarbage(final NodeDocument doc, final GCPhases phases) {
updateOpList.add(op);
}
}
- if (log.isDebugEnabled()) {
- log.debug("UpdateOp for {} is {}", doc.getId(), op);
+ if (DETAILED_GC_LOG.isDebugEnabled() && op.hasChanges()) {
+ // only log in case of changes & debug level enabled
+ DETAILED_GC_LOG.debug("UpdateOp for {} is {}", doc.getId(), op);
Review Comment:
Not sure we should have the entire UpdateOp in the audit log - it can be very noisy. Also not sure if logging the property names is fine here... (we could move it to log.trace, perhaps, not sure..)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#issuecomment-2037865358
(Sorry about the conflict I caused with OAK-10743!)
I think we should revisit what we want in the audit log and what in the normal log. Initially thought the audit log should be as compact as possible and not leak any information (eg property names might be risky).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "rishabhdaim (via GitHub)" <gi...@apache.org>.
rishabhdaim commented on PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#issuecomment-2037793527
Logging into 2 separate log files would be an overkill. We should keep the `error` log in the normal logger.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] OAK-10741 : added separate logger for detailed gc [jackrabbit-oak]
Posted by "stefan-egli (via GitHub)" <gi...@apache.org>.
stefan-egli commented on code in PR #1402:
URL: https://github.com/apache/jackrabbit-oak/pull/1402#discussion_r1552190663
##########
oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGarbageCollector.java:
##########
@@ -1637,8 +1660,8 @@ private int removeUnusedPropertyEntries(NodeDocument doc,
// via collectUnmergedBranchCommits. Checking for that next.
Operation c = updateOp.getChanges().get(new Key(propertyKey, localRev));
if (c == null) {
- if (log.isTraceEnabled()) {
- log.trace("removeUnusedPropertyEntries : removing property key {} with revision {} from doc {}",
+ if (DETAILED_GC_LOG.isTraceEnabled()) {
+ DETAILED_GC_LOG.trace("removeUnusedPropertyEntries : removing property key {} with revision {} from doc {}",
Review Comment:
Not sure if we should have this in the audit log...?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jackrabbit.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org