Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-10076

Make the event service don't log full stacktrace on RecoverableClientException

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6
    • Fix Version/s: 5.6.0-HF11, 5.7.1
    • Component/s: Core

      Description

      No need to log the stacktrace in case of RecoverableClientException:

      ERROR [org.nuxeo.ecm.quota.size.QuotaSyncListenerChecker] Raising Quota Exception on /default-domain/workspaces/test quota/test
      ERROR [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during quotaStatsListener sync listener execution, transaction will be rolledback
      org.nuxeo.ecm.quota.size.QuotaExceededException: label.quotaException.QuotaExceeded
      	at org.nuxeo.ecm.quota.size.QuotaSyncListenerChecker.checkConstraints(QuotaSyncListenerChecker.java:354)
      	at org.nuxeo.ecm.quota.size.QuotaSyncListenerChecker.checkConstraints(QuotaSyncListenerChecker.java:330)
      	at org.nuxeo.ecm.quota.size.QuotaSyncListenerChecker.processDocumentBeforeUpdate(QuotaSyncListenerChecker.java:194)
      	at org.nuxeo.ecm.quota.AbstractQuotaStatsUpdater.updateStatistics(AbstractQuotaStatsUpdater.java:114)
      	at org.nuxeo.ecm.quota.QuotaStatsServiceImpl$1.run(QuotaStatsServiceImpl.java:82)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:115)
      	at org.nuxeo.ecm.quota.QuotaStatsServiceImpl.updateStatistics(QuotaStatsServiceImpl.java:75)
      	at org.nuxeo.ecm.quota.QuotaStatsListener.handleEvent(QuotaStatsListener.java:60)
      	at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:228)
      
      (...)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: