Commit d9a56c4
committed
CAS validation improvements (#10966)
* [CAS] Validate upstream CAS storage
When asked to validate the CAS, also validate the upstream CAS if
present. The entire upstream CAS is available as backup storage of the
currently active CAS. If the upstream CAS is corrupted, it can propagate
the error into downstream error, thus when upstream CAS is invalid, the
entire UnifiedCAS should be invalid.
* [CAS] Do not check if action cache value exists in the object store
Fix a false positive/crash when validating action cache from unified
data base by stop checking the cached value exists in the object store.
First of all, there is a bug that the check is always done against
primary object store, where the object can be missing. It is also
possible that the CAS is in a state where the cache keys are fault in,
but not the objects the cache pointed to. There is no good way to
enforce it, thus the check is too strict.
rdar://155231696
(cherry picked from commit 09bbceb)1 parent 8835b75 commit d9a56c4
File tree
3 files changed
+12
-6
lines changed- llvm
- include/llvm/CAS
- lib/CAS
3 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 93 | + | |
| 94 | + | |
96 | 95 | | |
97 | 96 | | |
98 | 97 | | |
99 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
0 commit comments