Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-353

ArcRepository will crash on two wrong checksum replies

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • None
    • 0.5
    • Archive
    • None

    Description

      The first time the ArcRepository gets a checksum with unexpected results it
      tries re-uploading the file and removes it from the list of pending files.
      if (orgChecksum.equals(reportedChecksum)) {
      [...]
      } else {
      if ([...])

      { [...] }

      else if (storeState == BitArchiveStoreState.UPLOAD_STARTED) {
      ad.setState(arcfileName bitarchiveName
      BitArchiveStoreState.UPLOAD_FAILED);
      startUpload((RemoteFile) outstandingRemoteFiles.remove(arcfileName)
      (ConnectedBitarchive) connectedBitarchives.get(bitarchiveName));
      (note: startUpload sets state to UPLOAD_STARTED)
      If the checksum is again wrong it will try reuploading the file but since it
      has been removed this will result in a null-pointer-exception.
      Note: If this bug is fixed and the file isn't removed this may lead to an
      infinite loop continually switching state from STARTED to FAILED if the
      checksum result from the job is always wrong.
      NOTE: This bug is originally from Bugzilla bug_id=343.
      This bug was previously assigned to JJA.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kfc Kåre Fiedler Christiansen (Inactive)
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: