Files
scylladb/sstables
Kefu Chai 1ed894170c sstables: throw at seeing invalid chunk_len
before this change, when running into a zero chunk_len, scylla
crashes with `assert(chunk_size != 0)`. but we can do better than
printing a backtrace like:
```
scylla: sstables/compress.cc:158: void
sstables::compression::segmented_offsets::init(uint32_t): Assertion `chunk_size != 0' failed.
```
so, in this change, a `malformed_sstable_exception` is throw in place
of an `assert()`, which is supposed to verify the programming
invariants, not for identifying corrupted data file.

Fixes #15265
Signed-off-by: Kefu Chai <kefu.chai@scylladb.com>

Closes #15264
2023-09-06 14:20:38 +03:00
..
2023-06-06 13:29:16 +03:00
2023-05-09 16:47:00 +08:00
2023-02-15 11:01:50 +02:00
2023-02-14 11:19:03 +02:00
2023-02-14 11:19:03 +02:00
2023-08-14 15:40:44 +03:00
2023-06-06 13:29:16 +03:00