Skip to content

fix: resize containers when extracting the logical time#59

Open
doudou wants to merge 2 commits intomasterfrom
resize_containers
Open

fix: resize containers when extracting the logical time#59
doudou wants to merge 2 commits intomasterfrom
resize_containers

Conversation

@doudou
Copy link
Member

@doudou doudou commented Feb 26, 2026

Depends on:

If the marshalled type has a container size that is smaller than the reading
system's native type, the resulting memory zone will be too small and things
will crash

Pocolog::DataStream does it, but since the normalization codepath uses
BlockStream for speed reasons, we have to do it here as well.

@doudou doudou requested a review from wvmcastro February 26, 2026 18:53
doudou added 2 commits March 3, 2026 17:36
If the marshalled type has a container size that is smaller than the reading
system's native type, the resulting memory zone will be too small and things
will crash

Pocolog::DataStream does it, but since the normalization codepath uses
BlockStream for speed reasons, we have to do it here as well.
The refactoring of the previous commit has a bug, which shows that the test was
doing nothing. Namely, we were passing the rock_timestamp_field metadata, but
syskit-log would do nothing anyways because no fields were marked as
logical_time.
@doudou doudou force-pushed the resize_containers branch from 1aa2ecd to 756b1f1 Compare March 3, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants