Bug #5119

TypeError when listing over-populated containers

Added by Chrysostomos Nanakos about 10 years ago. Updated about 10 years ago.

Status:Resolved Start date:02/20/2014
Priority:Medium Due date:
Assignee:Sofia Papagiannaki % Done:

0%

Category:Pithos Spent time: -
Target version:0.16

Description

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/snf_django/lib/api/__init__.py", line 126, in wrapper
response = func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pithos/api/util.py", line 1111, in wrapper
response = func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pithos/api/functions.py", line 593, in container_delete
until, delimiter=delimiter)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 165, in wrapper
result = func(self, *args, **kw)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 146, in wrapper
return func(self, *args, **kw)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 756, in delete_container
size_range=None, all_props=True, public=False)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 849, in _list_objects_no_limit
public)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 820, in _list_objects
keys, until, size_range, allowed, all_props)
File "/usr/lib/python2.7/dist-packages/pithos/backends/modular.py", line 1809, in _list_object_properties
start = cont_prefix + marker if marker else None
TypeError: coercing to Unicode: need string or buffer, tuple found

The TypeError occurred after over-populating /pithos container with more than 1 million objects and then trying to purge container by issuing the kamaki command below:

$ kamaki container delete -r /pithos

Associated revisions

Revision 0c6ab9df
Added by Sofia Papagiannaki about 10 years ago

pithos: Fix TypeError when listing over-populated containers

Update tests

Refs: #5119

History

#1 Updated by Sofia Papagiannaki about 10 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF