-
Notifications
You must be signed in to change notification settings - Fork 491
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
Manage Local Storage binding file not found #2374
Comments
Any update to this problem? |
@ItalyPaleAle any quick thoughts? Maybe your PR already addressed this by chance. |
- Close file descriptor after reading a file - Report a more specific error if the file doesn't exist Signed-off-by: ItalyPaleAle <[email protected]>
@federicocodo Thanks for the report.
Fixes in #2449 and will be shipped with Dapr 1.10 |
@ItalyPaleAle Thanks a lot for the fixes, however what about the option to add in the yaml component or in the metadata field of the request class a time to live for files? |
I'm not in favor of that feature as a maintainer right now. That doesn't really fit the paradigm of this component. I want to avoid to introduce a separate thread for watching expiration times of files and then deleting them. File a separate feature request for that please and we can consider it in the future. |
I agree with @berndverst . However we should probably consider offering a state store for accessing local files. The TTL could be a feature of that. |
Let's not brainstorm that here @ItalyPaleAle. Right now I'm not convinced that files + TTL should be combined in any form. 😅 but if there is enough demand, sure. |
* bindings.localstorage: enforcements on rootPath Also includes ability to disallow certain root paths such as /var/run/secrets Fixes #2444 Signed-off-by: ItalyPaleAle <[email protected]> * Fixed tests on Windows Signed-off-by: ItalyPaleAle <[email protected]> * Fixed tests on Windows pt 2 Signed-off-by: ItalyPaleAle <[email protected]> * 💄 Signed-off-by: ItalyPaleAle <[email protected]> * Fixes #2374 - Close file descriptor after reading a file - Report a more specific error if the file doesn't exist Signed-off-by: ItalyPaleAle <[email protected]> * Updated cert tests Signed-off-by: ItalyPaleAle <[email protected]> Signed-off-by: ItalyPaleAle <[email protected]>
I started to use the Local Storage binding for my service application.
During my tests I notice that if I try to retrive a file that doesn't exist yet, I expect to receive a
NotFound
exception or aBindingResponse
with theData
field null, instead I received anInternal
exception just like in the image.Would it be possible to fix to receive one of the two proposals?
Also is it possible to add in the yaml component a metadata field, time to live, for the files?
Another bug I found during my tests is that if I get the data inside a file and then delete this, I receive an exception in which is described how my file cannot be delete because it is used by another process:
Maybe is it cause because the file isn't close after getting the data information?
The text was updated successfully, but these errors were encountered: