Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix assert in dimension slice lookup #6112

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Sep 24, 2023

Calling ts_scan_iterator_next will advance internal scanner data structures. It is therefore not safe to use the iterator after ts_scan_iterator_next returned NULL and expect to be able to access the previous tuple. Under certain circumstances this may point the iterator to tuples not normally visible.

Disable-check: force-changelog-file

@github-actions
Copy link

@jnidzwetzki, @mkindahl: please review this pull request.

Powered by pull-review

@svenklemm svenklemm added this to the TimescaleDB 2.12 milestone Sep 24, 2023
@svenklemm svenklemm requested a review from konskov September 24, 2023 22:25
@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Merging #6112 (522b8ef) into main (887f538) will decrease coverage by 0.02%.
The diff coverage is 83.33%.

❗ Current head 522b8ef differs from pull request most recent head 0a5a49f. Consider uploading reports for the commit 0a5a49f to get more accurate results

@@            Coverage Diff             @@
##             main    #6112      +/-   ##
==========================================
- Coverage   81.53%   81.52%   -0.02%     
==========================================
  Files         246      246              
  Lines       56777    56735      -42     
  Branches    12588    12569      -19     
==========================================
- Hits        46295    46253      -42     
+ Misses       8100     8071      -29     
- Partials     2382     2411      +29     
Files Changed Coverage Δ
src/dimension_slice.c 87.62% <83.33%> (+0.29%) ⬆️

... and 42 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@svenklemm svenklemm force-pushed the osm_crash branch 2 times, most recently from f332495 to 522b8ef Compare September 24, 2023 23:07
@konskov konskov requested a review from zilder September 25, 2023 06:59
Calling ts_scan_iterator_next will advance internal scanner data
structures. It is therefore not safe to use the iterator after
ts_scan_iterator_next returned NULL and expect to be able to access
the previous tuple. Under certain circumstances this may point the
iterator to tuples not normally visible.
@svenklemm svenklemm merged commit bdcca06 into timescale:main Sep 25, 2023
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants