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

Improve error messages and handle data structure anomalies #234

Open
IgorShadurin opened this issue May 11, 2023 · 0 comments
Open

Improve error messages and handle data structure anomalies #234

IgorShadurin opened this issue May 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@IgorShadurin
Copy link
Collaborator

We've encountered a situation where the data structure behaves incorrectly, but the error message provided by fdp-storage does not offer sufficient details to understand the issue. Specifically, we've found that if the first file of the pod is deleted, but the filename is not removed from the list of files of path /, the unencrypted version of chunkdata of the file is equal to __Fair__.

This ambiguous behavior makes it difficult to diagnose and resolve issues effectively. It would be beneficial to enhance the error messages to provide more detailed information when similar situations arise. This would help us understand the problem without needing to debug extensively.

In addition, we should handle this anomaly by displaying the list of files and directories without the problematic files. This would ensure the application continues to function as expected despite encountering such issues.

Finally, we need to identify the root cause of this situation and implement measures to prevent it from recurring.

The function where this issue occurs is src/content-items/utils.ts:31.

Acceptance Criteria:

  • Enhance the error messages in fdp-storage to provide more detailed information about data structure anomalies.
  • Implement a mechanism to handle such anomalies by displaying the list of files and directories without the problematic files (only for __Fair__).
  • Investigate the root cause of the anomaly where the first file of the pod is deleted but its filename remains in the list of files of any path.
  • Implement measures to prevent such anomalies from occurring in the future.
@IgorShadurin IgorShadurin added the enhancement New feature or request label May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant