Container synchronization is limited to 10000

Bug #1279804 reported by Fabien Boucher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
swiftsync
Fix Committed
Undecided
Fabien Boucher

Bug Description

Your object sync source code looks like it will quietly skip syncing anything more than the first 10,000 objects in a container: Where your code calls swiftclient’s get_container() (defined in swiftclient/client.py) to list all objects, it will only get the first 10,000 since the optional parameter full_listing defaults to false. Even if full_listing was set true, with millions of objects you could hit memory limitations.

Revision history for this message
Fabien Boucher (fabien-boucher) wrote :

A change is proposed here : https://review.openstack.org/#/c/73329/

Revision history for this message
Jim Freeman (jim-freeman) wrote :

Thanks Fabien, I looked at your change, the fix of setting 'full_listing = true' should solve this.

Changed in swiftsync:
status: New → In Progress
assignee: nobody → Fabien Boucher (fabien-boucher)
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to swiftsync (master)

Reviewed: https://review.openstack.org/73329
Committed: https://git.openstack.org/cgit/stackforge/swiftsync/commit/?id=fa25f45e6ccc77c46d5cf1a98ab32cc3bd6a5c93
Submitter: Jenkins
Branch: master

commit fa25f45e6ccc77c46d5cf1a98ab32cc3bd6a5c93
Author: Fabien Boucher <email address hidden>
Date: Thu Feb 13 16:40:12 2014 +0100

    Set full_listing to True to avoid the default limit

    - Swiftclient cuts to 10000 by default the
    amount of objects listed with get_container. This
    patch set the full_listing to True.

    - This patch has no solutions to avoid the
    high memory consumption when container
    contains a huge amount of objects.

    Closes-Bug: #1279804

    Change-Id: I2d991baa14f9d4c6a827629c6b43fcc693e0262a

Changed in swiftsync:
status: In Progress → Fix Committed
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.