Commit a51cdcc
authored
CNDB-16352: filterCommitLogFiles handles NoSuchFileException gracefully (#2186)
### What is the issue
FSReadError extends IOError, so it was not caught by the catch block in
filterCommitLogFiles(). This caused replayer failures when a remote
commit log file was listed but no longer accessible.
### What does this PR fix and why was it fixed
Only NoSuchFileException is handled gracefully; other IOErrors (such as
corruption) are re-thrown to fail the replay as intended.1 parent e9afd3a commit a51cdcc
File tree
1 file changed
+14
-0
lines changed- src/java/org/apache/cassandra/db/commitlog
1 file changed
+14
-0
lines changedLines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
122 | 136 | | |
123 | 137 | | |
124 | 138 | | |
| |||
0 commit comments