Skip to content

Commit

Permalink
tests: Add stats metadata validation to write_collection_incremental_…
Browse files Browse the repository at this point in the history
…update

Signed-off-by: Vladimir Krivopalov <vladimir@scylladb.com>
  • Loading branch information
vkrivopalov committed Dec 7, 2018
1 parent 0118b15 commit 99d3cbd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/sstable_3_x_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3440,7 +3440,7 @@ SEASTAR_THREAD_TEST_CASE(test_write_collection_incremental_update) {

lw_shared_ptr<memtable> mt = make_lw_shared<memtable>(s);

// UPDATE collection_incremental_update SET col = col + {2} WHERE pk = 1;
// UPDATE collection_incremental_update USING TIMESTAMP 1525385507816568 SET col = col + {2} WHERE pk = 1;
auto key = partition_key::from_deeply_exploded(*s, { 1 });
mutation mut{s, key};

Expand All @@ -3451,7 +3451,8 @@ SEASTAR_THREAD_TEST_CASE(test_write_collection_incremental_update) {
mt->apply(mut);

tmpdir tmp = write_and_compare_sstables(s, mt, table_name);
validate_read(s, tmp.path, {mut});
auto written_sst = validate_read(s, tmp.path, {mut});
validate_stats_metadata(s, written_sst, table_name);
}

SEASTAR_THREAD_TEST_CASE(test_write_multiple_partitions) {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Data.db
Digest.crc32
Index.db
TOC.txt
Filter.db
Statistics.db

0 comments on commit 99d3cbd

Please sign in to comment.