Uploaded image for project: 'Bitrepository'
  1. Bitrepository
  2. BITMAG-847

ReferencePillar throws wrong response code when file transfer fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 0.23.1, 0.24, 1.0
    • None
    • Reference pillar
    • None
    • Hide

      Perform a PutFile on the ReferencePillar on a very large file.
      Force a disconnect during the pillar downloading the file, e.g. shutdown the file-server.
      The pillar should deliver a 'FILE_TRANFER_FAILURE' instead of just a 'FAILURE'.

      Show
      Perform a PutFile on the ReferencePillar on a very large file. Force a disconnect during the pillar downloading the file, e.g. shutdown the file-server. The pillar should deliver a 'FILE_TRANFER_FAILURE' instead of just a 'FAILURE'.

    Description

      When the ReferencePillar gets a connection error while downloading a file, it does not turn it into a 'FILE_TRANSFER_FAILED' response code, but instead a 'FAILURE' responce code.

      As seen below in the log from the cmd-client:
      ...
      Failure: 8dbbedf6: PUT_FILE for file 9028-MB100.arc: FAILED: , Failed operation. Cause(s):
      [8dbbedf6: PUT_FILE for file 9028-MB100.arc: COMPONENT_FAILED: ContributorID modisk01 ResponseCode: FAILURE, org.bitrepository.protocol.CoordinationLayerException: Could not retrieve file '9028-MB100.arc']
      ...

      The error is turned into a CoordinationLayerException, which is caught and handled incorrect. It should become an 'FILE_TRANSFER_FAILURE' response code.

      Attachments

        Activity

          People

            jolf Jonas Lindberg Frellesen (Inactive)
            jolf Jonas Lindberg Frellesen (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: