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

Tomcat Restart Hangs after Sharding DSpace 6x Statistics

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0, 6.1
    • Fix Version/s: 6.1
    • Component/s: Statistics
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      14
    • Documentation Status:
      Needed

      Description

      While testing some sharding related PRs, I discovered a situation that the statistics sharding process on DSpace 6 leaves my repository in a state that prevents tomcat from restarting successfully. I have been able to reproduce this behavior reliably with the dspace-6.0 release code and in the dspace-6x branch.

      The sharing process is tricky to test because you can only run the process once per year. Once the process has run and records are migrated to an archive shard, the process does not allow you to write additional records to that shard. Here is a process that seems to work for me.

      1. Query solr console for a statistic record from "statistics". Copy the record.
      2. Paste the record into the "Documents" tab of the console. Edit the "id" field to create a new uuid. Remove the "version" field. Edit the time field and assign a unique year to the record (i.e. 2005).
      3. Submit the record
      4. Run stats-util -s to trigger the shard. Your record should get written to statistics-2005 or statistics-2004 (another bug)
      5. Refresh the solr console and confirm that your record was moved
      6. Look at your solr directory to see the new shard
      7. Restart tomcat

      I found that the tomcat restart process hangs while initializing the shard.

      In order to recover, I need to do the following

      • kill tomcat (shutdown does not respond)
      • delete the new shard directory (it is a test system, so I do not care)
      • restart tomcat

      tomcat restarts properly

      If we can confirm this behavior, we should advise users not to shard a dspace 6 repo.

      This issue does not occur if I repeat the process on a DSpace 5 instance.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                terrywbrady Terry Brady
                Reporter:
                terrywbrady Terry Brady
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: