[test] Add TSM related unit tests to improve code coverage. #2054
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Required checklist
config
,meta/config
anddefault config
)api change
label.Which issue does this PR close?
fix: series_data.add_column modifies the schema in groups, but series_data.drop_column also removes the corresponding column from rowdata.fields in groups. If we add a column in the schema update, but remove it without updating the value in the fields, it will be out of bounds.
tskv/src/memcache.rs 314-317.
unit tests:
memcache:
series_data_write_group()
series_data_columns_modify()
series_delete_by_time_ranges()
memcache_write_group()
memcache_to_chunk_group()
memcache_columns_modify()
memcache_read_series_data()
memcache_delete_by_time_ranges()
writers:
write_and_read()
write_and_read2()
write_and_read3()
data_block:
datablock_to_pages()
datablock_merge()
datablock_sort()
datablock_chunk()
datablock_fliter_by_tomb()
flush:
flush_run()
Related #.
Rationale for this change
Are there any user-facing changes?