Commit 53dcda0
fix: Clear AsyncDataCache in test SetUp to fix flakiness (#16533)
Summary:
Pull Request resolved: #16533
Some tests using HiveConnectorTestBase were experiencing flaky failures with "read past EOF" errors in PagedInputStream. This was caused by stale cache entries in AsyncDataCache being returned when temp files were reused between tests (same inode/fileNum leading to cache key collisions).
The fix clears all unpinned cache entries at the start of each test to ensure tests start with a clean cache state. This prevents corrupted/stale data from being read when temp file paths or inodes are recycled by the OS.
Reviewed By: Yuhta
Differential Revision: D94400710
fbshipit-source-id: edaefc1945748f9558289cc34cf8987ef3c31b6d1 parent 3591d31 commit 53dcda0
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
40 | 48 | | |
41 | 49 | | |
42 | 50 | | |
| |||
0 commit comments