Project

General

Profile

Actions

Bug #16027

closed

Add support for swift bulk delete with POST request

Added by Shilpa MJ almost 8 years ago. Updated 19 days ago.

Status:
Can't reproduce
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.

Actions #1

Updated by Radoslaw Zarzynski almost 8 years ago

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

Updated by Radoslaw Zarzynski almost 8 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:

Actions #3

Updated by Shilpa MJ almost 8 years ago

Sure thanks Radoslaw!

Actions #4

Updated by Konstantin Shalygin 19 days ago

  • Status changed from New to Can't reproduce
Actions

Also available in: Atom PDF