Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-3596

Reduce level for 'overwriting cached item' log messages in ItemManager

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.6.2, 2.7.1
    • jackrabbit-core
    • None

    Description

      There are warn messages about 'overwriting cached item' in the logs when an application shares a JCR session for reads. So far, this usage is considered OK, while sharing a session for writes is discouraged. Jackrabbit should not log warnings for usages we consider valid.

      AFAICS repository consistency is not at risk here. There's no guarantee or requirement that only one Item instance is around for a given ItemId. The important piece is the underlying ItemState, which is managed by the SharedItemStateManager with a diffferent synchronization/locking implementation.

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: