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

carbonserver: log more detailed errors about symlink and continue trie index despite error #427

Merged
merged 2 commits into from Sep 30, 2021

Conversation

bom-d-van
Copy link
Member

Two issues are resolved in this commit:

  • filepath.Walk does not follow symlinks, so it is good practice to log errors during startup
    and indexing when whisper data dir is a symlink.
  • trie.insert could return errors if broken filename or paths or bugs are encountered or
    triggered. originally it would stop indexing when error is returned for a specific metric
    path, but it is better to continue indexing and just log the error.

…e index despite error

Two issues are resolved in this commit:

* filepath.Walk does not follow symlinks, so it is good practice to log errors during startup
  and indexing when whisper data dir is a symlink.
* trie.insert could return errors if broken filename or paths or bugs are encountered or
  triggered. originally it would stop indexing when error is returned for a specific metric
  path, but it is better to continue indexing and just log the error.
It is not an intended use case of trie index, but it is nice to have it cope properly
when inserting dirs instead of files.
@bom-d-van bom-d-van merged commit 749acdd into master Sep 30, 2021
@bom-d-van bom-d-van deleted the trie/nil-filename-error-fix branch October 7, 2021 12:01
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

Successfully merging this pull request may close these issues.

None yet

2 participants