Bascially I have uploaded a object using sements options . 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.
Bascially I have uploaded a object using sements options . 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
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
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
So I have object uploaded in step number 1, getting shown in the container.
7) Download this object
swift download Jumbox
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
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
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.