Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: Fedora 3.7.1
    • Fix Version/s: None
    • Component/s: legacy - Fedora
    • Labels:
    • Environment:
      OS: Centos 6.6
      4GB RAM
      2 CPU (Intel Xeon)

      All fedora storage, including tomcat temporary folders, are located on a NFS mount.

      Description

      The islandora software creates objects, and stores them
      in our fedora-commons installation, using the REST-API.

      Every object has a datastream "TN", which is jpeg-file,
      that serves as a "thumbnail". This datastream is versionable.

      Mostly, all goes fine. But sometimes, the new version is registered
      by fedora, but strangely disappears from the underlying filesystem,
      without fedora noting this in the datastream description.

      All I could was this in the log files:

      [..]
      INFO 2015-10-22 10:59:58.035 [http-8080-16] (DatastreamResource) addOrUpdate
      INFO 2015-10-22 10:59:58.035 [http-8080-16] (DefaultManagement) Completed getDatastream(pid: islandora:20401, datastreamID: TN, asOfDateTime: null)
      INFO 2015-10-22 10:59:58.045 [http-8080-50] (DatastreamResource) addOrUpdate
      INFO 2015-10-22 10:59:58.046 [http-8080-50] (DefaultManagement) Completed getDatastream(pid: islandora:20401, datastreamID: TN, asOfDateTime: null)
      INFO 2015-10-22 10:59:58.049 [http-8080-16] (DefaultDOManager) Committing modification of islandora:20401
      INFO 2015-10-22 10:59:58.049 [http-8080-16] (DefaultDOManager) Getting managed datastream from internal uploaded location: uploaded://133842 for islandora:20401
      INFO 2015-10-22 10:59:58.066 [http-8080-16] (DefaultDOManager) Replaced managed datastream location with internal id: islandora:20401+TN+TN.0
      INFO 2015-10-22 10:59:58.067 [http-8080-16] (DefaultDOManager) Adding to ResourceIndex
      INFO 2015-10-22 10:59:58.075 [http-8080-16] (DefaultDOManager) Updating dissemination index for islandora:20401
      INFO 2015-10-22 10:59:58.075 [http-8080-16] (DefaultDOManager) Updating FieldSearch index
      INFO 2015-10-22 10:59:58.077 [http-8080-16] (DefaultManagement) Completed addDatastream(pid: islandora:20401, dsID: TN, altIDs: , dsLabel: Thumbnail, versionable: true, MIMEType: image/jpeg, formatURI: , dsLocation: uploaded://133842, controlGroup: M, dsState: A, checksumType: DISABLED, checksum: null, logMessage: Copied datastream from islandora:20401.)
      INFO 2015-10-22 10:59:58.081 [http-8080-16] (DefaultManagement) Completed getDatastream(pid: islandora:20401, datastreamID: TN, asOfDateTime: null)
      INFO 2015-10-22 10:59:58.083 [http-8080-50] (DefaultDOManager) Committing modification of islandora:20401
      INFO 2015-10-22 10:59:58.084 [http-8080-50] (DefaultDOManager) Getting managed datastream from internal uploaded location: uploaded://133843 for islandora:20401
      INFO 2015-10-22 10:59:58.098 [http-8080-50] (DefaultDOManager) Replaced managed datastream location with internal id: islandora:20401+TN+TN.0
      INFO 2015-10-22 10:59:58.098 [http-8080-50] (DefaultDOManager) Removed purged datastream version from low level storage (token = islandora:20401+TN+TN.0)
      INFO 2015-10-22 10:59:58.100 [http-8080-50] (DefaultDOManager) Adding to ResourceIndex
      INFO 2015-10-22 10:59:58.118 [http-8080-50] (DefaultDOManager) Updating dissemination index for islandora:20401
      INFO 2015-10-22 10:59:58.118 [http-8080-50] (DefaultDOManager) Updating FieldSearch index
      INFO 2015-10-22 10:59:58.120 [http-8080-50] (DefaultManagement) Completed addDatastream(pid: islandora:20401, dsID: TN, altIDs: , dsLabel: Thumbnail, versionable: true, MIMEType: image/jpeg, formatURI: , dsLocation: uploaded://133843, controlGroup: M, dsState: A, checksumType: DISABLED, checksum: null, logMessage: Copied datastream from islandora:20401.)
      INFO 2015-10-22 10:59:58.131 [http-8080-50] (DefaultManagement) Completed getDatastream(pid: islandora:20401, datastreamID: TN, asOfDateTime: null)

      [..]

      As you can see, the file is uploaded two times.
      The first file "uploaded://133842" gets the identifier "islandora:20401+TN+TN.0".
      The second file "uploaded://133843" also gets the
      identifier "islandora:20401+TN+TN.0".

      This double identifier probably causes the deletion of the underlying file,
      as reported in the log:

      Removed purged datastream version from low level storage (token = islandora:20401+TN+TN.0)

      The method "deletePurgedDatastreams" in DefaultDOManager
      does this?
      Is this behaviour intented? What can I do to prevent this?

      Thanks in advance

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nicolas.franck Nicolas Franck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: