Project

General

Profile

Bug #16027

Add support for swift bulk delete with POST request

Added by Shilpa MJ over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
rgw
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In addition to DELETE request, swift also provides support for bulk delete with POST request:

https://github.com/openstack/swift/blob/master/swift/common/middleware/bulk.py#L149

http://docs.openstack.org/developer/swift/middleware.html#bulk-delete

We could add support in RGW for the same.

History

#1 Updated by Radoslaw Zarzynski over 5 years ago

  • Status changed from New to 12
  • Assignee set to Radoslaw Zarzynski
  • Backport set to jewel

#2 Updated by Radoslaw Zarzynski over 5 years ago

  • Status changed from 12 to New
  • Backport deleted (jewel)

I wanted to start coding this feature but it looks I've forgotten we actually have it. ;-) If you don't mind, I will close this ticket.

Tested it out:
$ curl -i -X POST -H "X-Auth-Token: $token" "$publicURL/?bulk-delete" --data-binary @./multidel-noslash

HTTP/1.1 200 OK
X-Trans-Id: tx000000000000000000016-005748582b-1015-default
Content-Type: text/plain; charset=utf-8
Content-Length: 87
Date: Fri, 27 May 2016 14:22:35 GMT

Number Deleted: 8
Number Not Found: 0
Response Body:
Response Status: 200 OK
Errors:

#3 Updated by Shilpa MJ over 5 years ago

Sure thanks Radoslaw!

Also available in: Atom PDF