Expiring Large Objects doesn't clean up segments

Bug #1514604 reported by clayg
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-swiftclient
New
Undecided
Unassigned

Bug Description

When creating a Large Object with an expirer header the user should expect that all of the segments (and not just the manifest) are expired according to the requested header:

vagrant@saio:/vagrant/.scratch$ swift upload test testme.builder -H 'x-delete-after: 10' --use-slo -S 1048576 -H 'x-delete-after: 10'
testme.builder segment 2
testme.builder segment 0
testme.builder segment 1
testme.builder

^ object and segments are uploaded with x-delete-after but only manifest gets the expire header

vagrant@saio:/vagrant/.scratch$ swift list test_segments
testme.builder/slo/1443074688.000000/2102625/1048576/00000000
testme.builder/slo/1443074688.000000/2102625/1048576/00000001
testme.builder/slo/1443074688.000000/2102625/1048576/00000002
vagrant@saio:/vagrant/.scratch$ swift stat -v test_segments testme.builder/slo/1443074688.000000/2102625/1048576/00000000
           URL: http://saio:8080/v1/AUTH_test/test_segments/testme.builder/slo/1443074688.000000/2102625/1048576/00000000
    Auth Token: AUTH_tka346244746174116b29936113b950298
       Account: AUTH_test
     Container: test_segments
        Object: testme.builder/slo/1443074688.000000/2102625/1048576/00000000
  Content Type: application/octet-stream
Content Length: 1048576
 Last Modified: Mon, 09 Nov 2015 22:04:06 GMT
          ETag: cd777a16f7290910ee21c32a3b7582cc
 Accept-Ranges: bytes
   X-Timestamp: 1447106645.10095
    X-Trans-Id: tx4ae8960d734a450194b0c-0056411867
vagrant@saio:/vagrant/.scratch$ swift stat -v test testme.builder
Object HEAD failed: http://saio:8080/v1/AUTH_test/test/testme.builder 404 Not Found

^ manifest is 404'd but segments remain

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.