Commit 0f7f7dd
Add diagnostics for cache-population race investigation
terraform-cache-brownfield started failing on config_scope/global mode
assertions after passing consistently through build #3. Static tracing
couldn't fully confirm whether the cause is an NSX search-index
consistency race or a runID mismatch across separate terraform apply
processes, so add targeted logging (no behavior change) to make the
next failure self-evident: log the resourceType/id/runID/currentTags
when a provider-managed tag gets re-patched, and log the populated
bucket size when a resourceID is still missing right after a bulk
search just populated that bucket.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent e9926db commit 0f7f7dd
3 files changed
Lines changed: 67 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
505 | 511 | | |
506 | 512 | | |
507 | 513 | | |
| |||
870 | 876 | | |
871 | 877 | | |
872 | 878 | | |
873 | | - | |
| 879 | + | |
874 | 880 | | |
875 | 881 | | |
876 | 882 | | |
| |||
1006 | 1012 | | |
1007 | 1013 | | |
1008 | 1014 | | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
1009 | 1032 | | |
1010 | | - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
1011 | 1036 | | |
1012 | 1037 | | |
1013 | 1038 | | |
| |||
1056 | 1081 | | |
1057 | 1082 | | |
1058 | 1083 | | |
1059 | | - | |
| 1084 | + | |
| 1085 | + | |
1060 | 1086 | | |
1061 | 1087 | | |
1062 | 1088 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
| 177 | + | |
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
| 199 | + | |
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
267 | 303 | | |
268 | 304 | | |
269 | 305 | | |
| |||
0 commit comments