Uploaded image for project: 'Opencast'
  1. MH-11722

Episode Service's SolrIndexManager only deletes 10 mp versions at a time

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed and reviewed
    • Affects versions: 1.7.0
    • Fix versions: 2.3.0
    • Components: Backend Software
    • Labels:
      None
    • Severity:
      Usability Issue
    • Steps to reproduce:
      Hide
      Steps to reproduce:
      1. Archive more than 10 version of an mp
      2. Delete the mp (via the archive service)
       
       Actual Results: Only 10 of the mp's versions are flagged as deleted. The query for mps the archive service returns the remaining un-deleted versions of the mp.
       
      Expected Results: All versions of the mp are flagged as deleted.
       
       Workaround (if any): Keep deleting in iterations of 10 versions until all versions are flagged as deleted in the archive.
       
      Possible issue: The default Apache Solr Result set has a limit (# of rows) of 10 [1]. The Episode Service's SolrIndexManager does not change this default row limit in the delete query [2].

      [1] https://wiki.apache.org/solr/CommonQueryParameters#rows
      [2] https://bitbucket.org/opencast-community/matterhorn/src/6184be4c2b4a59da66b63e586ffd233bef46b3ba/modules/matterhorn-archive-schema/src/main/java/org/opencastproject/archive/opencast/solr/SolrIndexManager.java?at=r%2F2.2.x&fileviewer=file-view-default#SolrIndexManager.java-232


      Show
      Steps to reproduce: 1. Archive more than 10 version of an mp 2. Delete the mp (via the archive service)    Actual Results: Only 10 of the mp's versions are flagged as deleted. The query for mps the archive service returns the remaining un-deleted versions of the mp.   Expected Results: All versions of the mp are flagged as deleted.    Workaround (if any): Keep deleting in iterations of 10 versions until all versions are flagged as deleted in the archive.   Possible issue: The default Apache Solr Result set has a limit (# of rows) of 10 [1]. The Episode Service's SolrIndexManager does not change this default row limit in the delete query [2]. [1] https://wiki.apache.org/solr/CommonQueryParameters#rows [2] https://bitbucket.org/opencast-community/matterhorn/src/6184be4c2b4a59da66b63e586ffd233bef46b3ba/modules/matterhorn-archive-schema/src/main/java/org/opencastproject/archive/opencast/solr/SolrIndexManager.java?at=r%2F2.2.x&fileviewer=file-view-default#SolrIndexManager.java-232

      TestRail: Results

        Attachments

          Activity

            People

            • Assignee:
              karen "Failed to Retrieve User 557058:5fd3a1cd-1d76-4d2e-a52c-19497a9cf68e" (Inactive)
              Reporter:
              karen "Failed to Retrieve User 557058:5fd3a1cd-1d76-4d2e-a52c-19497a9cf68e" (Inactive)
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                TestRail: Cases