Comment 2 for bug 1416720

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to swiftonfile (master)

Submitter: Jenkins
Branch: master

commit 3083d14aff2588f53994bb693fd9f54c801b99c4
Author: Prashanth Pai <email address hidden>
Date: Tue Sep 29 15:41:02 2015 +0530

    Fix inconsistent data being returned on GET

    This is a manual forward-port of the following change merged into
    icehouse branch:

    When content of an object is modified from filesystem interface, a GET
    on the object will return inconsistent or incomplete content because the
    content length originally stored as metadata no longer reflects the
    actual length of the file after modification.

    The complete fix will have two parts:
    (1) Return the entire content of object as is to the client
    (2) The Etag returned should reflect the actual md5sum of object content

    This change only fixes (1) mentioned above. This means, the client will
    always get the complete content of the file.

    Fix (2) is not part of this change. This means, if content length of the
    object remains same even after modification, the Etag returned would be
    incorrect. Fixing (2) involves more invasive changes in the code. So
    that is deferred for now and will be sent as a separate change later.


    Change-Id: I28d0ec33c59eb520be7d15a60adb968692226e3e
    Closes-Bug: #1416720
    Signed-off-by: Prashanth Pai <email address hidden>