You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(tail): watch both file and parent on Linux to fix follow-name tests
Previously, Linux inotify only watched the parent directory while kqueue
(macOS/BSD) watched both file and parent. This caused event path mismatches
on Linux when files were renamed:
1. File /tmp/dir/file.txt is tracked in HashMap
2. File gets renamed to /tmp/dir/backup
3. Event fires with path=/tmp/dir/backup
4. HashMap lookup fails -> event ignored -> tests fail
Fixes 5 failing tests on Linux CI:
- test_follow_name_move1
- test_follow_name_move_create1
- test_follow_name_move2
- test_follow_name_truncate1
- test_follow_name_move_retry2
By unifying the implementation to watch both file and parent on all
platforms, we ensure:
- Modification events captured directly from file watch
- Rename/delete events captured from parent watch
- Consistent path tracking across all platforms
- No event path mismatches
0 commit comments