object not found after deletion of segments

Bug #1423843 reported by Ritesh Paiboina
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python-swiftclient
Confirmed
Undecided
Unassigned

Bug Description

Bascially I have uploaded a object using segments option . At this two containers are getting created one for single object and another for object segments . Now when I delete the object segments container, it gets deleted, that is fine. But when you do the list of other single object container you can see that object is getting show there there . And when you try to download that single object from the container, it shows object is not found .

For more understanding here are the steps to reproduce the issue,

0) Swift list is empty with no objects and containers.

1) Upload a sample object

     swift upload Jumbox install_flash_player_11_linux.x86_64.tar.gz --segment-size 1024000

2) Execute the swit list to see the containers created

      swift list

                     Jumbox
                     Jumbox_segments

      You can see two containers has been created. One container has single object and other container has segments of that object

3) Delete the the container with segments

      swift delete Jumbox_segments

4) Again, exectue the swit list to see existing containers

       swift list

                      Jumbox

5) So we have a container exists, which has been created from step number 1

6) List out the objects of the that container

      swift list Jumbox

                                     install_flash_player_11_linux.x86_64.tar.gz

     So I have object uploaded in step number 1, getting shown in the container.

7) Download this object

      swift download Jumbox

                                       Object 'Jumbox/install_flash_player_11_linux.x86_64.tar.gz' not found

So it means that if you delete container with segments, it will delete the data, but it will not delete the reference of the object of the new container create with this command.

The visa versa is different i.e

1) Upload a sample object

     swift upload Jumbox install_flash_player_11_linux.x86_64.tar.gz --segment-size 1024000

2) Execute the swit list to see the containers created

      swift list

                     Jumbox
                     Jumbox_segments

      You can see two containers has been created. One container has single object and other container has segments of that object

3) Delete the the container with single object

      swift delete Jumbox

4) Again, exectue the swit list to see existing containers

       swift list

                      Jumbox_segments

5) So we have a container exists, which has been created from step number 1

6) List out the objects of the that container

      swift list Jumbox_segments

      You can see nonthing, this means there is no reference of uploaded object.

Changed in python-swiftclient:
assignee: nobody → Ritesh (rsritesh)
description: updated
description: updated
Changed in python-swiftclient:
status: New → Confirmed
Revision history for this message
Ritesh Paiboina (rsritesh) wrote :

Hi All,

Is it a valid Bug ? Comments please

Changed in python-swiftclient:
status: Confirmed → New
Changed in python-swiftclient:
status: New → In Progress
Changed in python-swiftclient:
assignee: Ritesh (rsritesh) → nobody
status: In Progress → Confirmed
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.