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

fix(file.util): avoid inotify problems in containers by using polling over FileWatcher #38

Merged
merged 4 commits into from
Apr 29, 2024

Conversation

pichlermarc
Copy link
Member

@pichlermarc pichlermarc commented Apr 24, 2024

Description

When using bind-mounts in containers the FileWatcher may not pick up changes to the file, causing the watch-service-based implementation to miss updates to the file. This becomes problematic on token rotations.

This PR switches the implementation to use the PollBasedFilePoller (60 second interval) instead.

Tests:

  • existing unit tests
  • tested manually with a reproducer provided by @pirgeo

Additional Resources

@pichlermarc pichlermarc marked this pull request as ready for review April 24, 2024 13:12
@pichlermarc
Copy link
Member Author

@arminru added the comments you mentioned offline. c2dc59d

Co-authored-by: Armin Ruech <7052238+arminru@users.noreply.github.com>
@pichlermarc pichlermarc merged commit 15df84c into main Apr 29, 2024
13 checks passed
@pichlermarc pichlermarc deleted the fix/default-to-poll-based branch April 29, 2024 07:53
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.

3 participants