Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem Deleting File from S3 Console #122

Open
hierony94 opened this issue Aug 2, 2016 · 3 comments
Open

Problem Deleting File from S3 Console #122

hierony94 opened this issue Aug 2, 2016 · 3 comments

Comments

@hierony94
Copy link

hierony94 commented Aug 2, 2016

Hi @wizzard ,
I'm found a problem when deleting file from S3 Console

This is the scenario :

  • Creating a file named 'test1.txt' in my mounted directory.
  • I try to delete the file using rm -f test1.txt, No problem here.
  • Creating a file named 'test1.txt' again
  • I'm delete the file from S3 Console, The file is deleted from S3 Bucket
  • But when I list the files on mounted directory, I'm found this.

problem-deleting-riofs

It show ?????????.
Do you have any idea why it happen?

Thanks for your help.

@wizzard
Copy link
Member

wizzard commented Aug 3, 2016

Hello,

RioFS has a caching algorithm that tries to minimize access to the remote S3 cloud (so it increase the speed of filesystem operations). So we have to keep deleted objects in the cache untill we send the next update request to S3.
If during that time you restore (or create a new) object with the same name on remote S3, then RioFS will get into "ambiguous" state: from one side your object is removed, but from other side it exists.

I'm aware about this issue, but currently this is one of RioFS limitations.
My recommendations: try to avoid simultaneous delete and restore of objects. But if you have to: take a look at various "caching" timeout variables in the configuration file, try to play with these variables and see if it makes difference for you.

Hope it help!

@hierony94
Copy link
Author

Thanks for your response @wizzard ,

But It also happening without restore (or create a new) object with the same name.

I try this scenario (Without trying remove with rm -f) :

  • Creating a file named 'test1.txt'
  • Delete the file from S3 Console

@hierony94
Copy link
Author

hierony94 commented Aug 8, 2016

@wizzard ,

Is it possible to disable caching mechanism in RioFS?
I'm curious whether my problem still exist if I disable it.

I do it by change this line, I edit the value to false
<cache_enabled type="boolean">False</cache_enabled>

Is't the correct way to disable caching mechanism?
Because after I try this, my problem still exist.

Please help me figure it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants