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-08-21 19:25:32 +08:00
2022-01-18 12:15:18 +01:00
2022-11-17 08:01:00 +02:00
2023-05-09 16:47:00 +08:00
2023-02-15 11:01:50 +02:00
2023-04-21 09:49:24 +03:00
2023-04-28 16:59:29 +08:00
2023-04-27 10:24:46 +03:00
2023-05-04 18:29:04 +03:00
2023-02-14 11:19:03 +02:00
2022-07-08 12:59:14 +03:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-06-21 13:02:40 +03:00
2022-01-18 12:15:18 +01:00
2023-03-29 16:13:59 +08:00
2023-09-01 22:34:41 +02:00
2023-06-06 13:29:16 +03:00
2023-06-06 13:29:16 +03:00
2023-04-21 14:28:18 +03:00
2023-02-14 11:19:03 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-02-14 11:19:03 +02:00
2023-02-19 21:05:45 +02:00
2023-02-14 11:19:03 +02:00
2023-09-01 07:44:06 +08:00
2023-09-01 22:34:41 +02:00
2023-09-01 22:34:41 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2022-06-12 20:05:28 +03:00
2022-01-18 12:15:18 +01:00
2023-07-10 19:36:06 +02:00
2022-01-18 12:15:18 +01:00
2023-04-27 12:06:48 -03:00
2023-02-15 11:01:50 +02:00
2022-01-18 12:15:18 +01:00
2022-01-18 12:15:18 +01:00
2023-04-10 23:31:35 +03:00
2023-09-01 07:44:06 +08:00
2023-08-14 14:56:02 +03:00
2022-04-28 14:12:24 +03:00
2023-06-06 13:29:16 +03:00
2023-08-14 21:07:27 +03:00
2023-08-14 21:07:27 +03:00
2023-08-14 21:07:27 +03:00
2023-02-19 21:05:45 +02:00
2023-02-19 21:05:45 +02:00
2022-02-16 18:21:24 +02:00
2023-02-19 21:05:45 +02:00
2023-06-06 13:29:16 +03:00
2023-08-28 10:51:19 +03:00
2023-08-14 15:28:54 +03:00
2023-09-06 14:20:38 +03:00
2023-08-14 15:40:44 +03:00
2022-05-24 13:32:39 +03:00
2023-08-14 15:40:44 +03:00
2023-08-14 15:40:44 +03:00
2022-08-18 19:03:10 +03:00
2023-04-27 10:24:46 +03:00
2023-03-21 09:56:18 +03:00
2023-06-06 13:29:16 +03:00
2023-06-06 13:29:16 +03:00
2023-08-24 18:03:10 +03:00