Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-3660

Items fail to be reindexed on metadata change when 'authority' consumer is enabled

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2, 7.0
    • Component/s: API
    • Labels:
    • Environment:
      Ubuntu 16.04 LTS, PostgreqSQL 9.5, Tomcat7
    • Attachments:
      1
    • Comments:
      4
    • Documentation Status:
      Not Required

      Description

      To reproduce this error, at a minimum, both the "authority" and "discovery" consumers must be enabled in your configuration:

      event.dispatcher.default.consumers = authority, discovery

      Then, simply edit an item's metadata (e.g. current dc.title) and the Item will disappear from that corresponding browse index (e.g. Browse by Title). The item will fail to be reindexed on metadata change.

      The logged error is:

      2017-08-02 11:14:15,488 ERROR org.dspace.discovery.SolrServiceImpl @ failed to lazily initialize a collection of role: org.dspace.content.DSpaceObject.metadata, could not initialize proxy - no Session org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: org.dspace.content.DSpaceObject.metadata, could not initialize proxy - no Session

      (Full error stacktrace is attached to this ticket)

      NOTE: This indexing issue can be resolved by simply running ".dspace index-discovery" on the backend, but the same problem will occur the next time you edit a metadata field.

       

       

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sulfrian Alexander Sulfrian
                Reporter:
                sven.soliman Sven Soliman
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: