Commit 374f29b
When `db.Compact()` fails after a successful `tsdb.Open()` in
`createTSDB`, the opened TSDB was not closed, leaking head, WAL,
and mmap file handles. Add `db.Close()` with warning-level logging
on the compaction error path.
Closes #7557
Signed-off-by: Sandy Chen <Yuxuan.Chen@morganstanley.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
1 parent bff54c5 commit 374f29b
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2980 | 2980 | | |
2981 | 2981 | | |
2982 | 2982 | | |
| 2983 | + | |
| 2984 | + | |
| 2985 | + | |
2983 | 2986 | | |
2984 | 2987 | | |
2985 | 2988 | | |
| |||
0 commit comments