This repository was archived by the owner on Jun 2, 2021. It is now read-only.
Commit 7eb2257
🐞 Eliminate spurious UnknownError from CC workers
- Previously, the old records cleanup generates UnknownErrors when there are no
records & it has been directed to preserve the most recent. Although
these UnknownErrors are harmless, they pollute logs, and can cause consternation.
- These UnknownErrors are not visible to the user via API calls; they appear only
in the worker logs.
- We now check to make sure that there is at least one record before
attempting to preserve it.
fixes:
```json
{
"error_code": "UnknownError",
"description": "An unknown error occurred.",
"code": 10001,
"test_mode_info": {
"description": "undefined method `id' for nil:NilClass",
"error_code": "CF-id"
}
}
```
[finishes #172773653]
Co-authored-by: Reid Mitchell <rmitchell@pivotal.io>
Co-authored-by: Brian Cunnie <bcunnie@pivotal.io>1 parent 9997811 commit 7eb2257
2 files changed
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
23 | 32 | | |
24 | 33 | | |
25 | 34 | | |
| |||
0 commit comments