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

Clients should be idempotent

    XMLWordPrintable

Details

    • Epic
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • None

    Description

      See http://en.wikipedia.org/wiki/Idempotence.

      This means that performing the same operation several times will result in the same result. Another of putting this is that is is only the expected outcome of a operation which is relevant, not how to get there.

      The consequence is that:

      • Put client looks at the ResponseCode, if it is a 'DUPLICATE_FILE_FAILURE' it should look at the returned checksum for the file (if present) and determine if the operation was a success or failure.
      • Delete file operations are considered a success, even if the file doesn't exist.
      • Replace file from file A to B is considered a success if 'EXISTING_CHECKSUM_FAILURE' is returned and the appended checksum is that of the replacement file (file B)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mss Mikis Seth Sørensen (Inactive)
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: