We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
storage
validate
1 parent 76fa467 commit 069ef98Copy full SHA for 069ef98
src/v/storage/tests/batch_generators.h
@@ -154,8 +154,11 @@ struct linear_int_kv_batch_generator {
154
static void validate_post_compaction(
155
chunked_circular_buffer<model::record_batch>&& batches) {
156
int idx = 0;
157
- for (const auto& batch : batches) {
+ for (auto& batch : batches) {
158
RPTEST_EXPECT_EQ(batch.record_count(), 1);
159
+ if (batch.compressed()) {
160
+ batch = model::decompress_batch_sync(batch);
161
+ }
162
batch.for_each_record([&idx](model::record rec) {
163
RPTEST_EXPECT_EQ(
164
reflection::from_iobuf<int>(rec.release_key()), idx++);
0 commit comments