prometheus/tsdb/wal
Chris Marchbanks 7c7dafc321
Do not snappy encode if record is too large (#8790)
Snappy cannot encode records larger than ~3.7 GB and will panic if an
encoding is attempted. Check to make sure that the record is smaller
than this before encoding.

In the future, we could improve this behavior to still compress large
records (or break them up into smaller records), but this avoids the
panic for users with very large single scrape targets.

Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
2021-05-06 12:56:45 -06:00
..
checkpoint.go MultiError: Refactored MultiError for more concise and safe usage. (#8066) 2020-10-28 15:24:58 +00:00
checkpoint_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
live_reader.go Fix golint issue caused by typo 2021-04-12 09:57:41 +08:00
reader.go Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
reader_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
wal.go Do not snappy encode if record is too large (#8790) 2021-05-06 12:56:45 -06:00
wal_test.go Cleanup tempfiles in tests (#8179) 2021-01-15 13:49:57 +05:30
watcher.go Move away from testutil, refactor imports (#8087) 2020-10-22 11:00:08 +02:00
watcher_test.go remove redundant type conversion (#8692) 2021-04-05 17:00:48 +05:30