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

Set NONCONTIGUOUS status flag upon OSM chunk creation #6094

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

konskov
Copy link
Contributor

@konskov konskov commented Sep 19, 2023

In #6036 we introduced a status field on the hypertable catalog table,
to indicate whether an OSM chunk exists and if its range is
noncontiguous.
When an OSM chunk was attached to a hypertable, the noncontiguous flag
was not set because the expectation was for the OSM extension to update
this with an API call when data was actually moved inside OSM from
timescaledb.
However, this would create compatibility issues because the new version
of OSM will not be rolled out at the same time as the new version of
timescaledb.
This commit sets the noncontiguous flag upon new OSM chunk creation to
ensure backwards compatibility. However it should be reverted once the
new version of OSM is deployed.

In timescale#6036 we introduced a status field on the hypertable catalog table,
to indicate whether an OSM chunk exists and if its range is
noncontiguous.
When an OSM chunk was attached to a hypertable, the noncontiguous flag
was not set because the expectation was for the OSM extension to update
this with an API call when data was actually moved inside OSM from
timescaledb.
However, this would create compatibility issues because the new version
of OSM will not be rolled out at the same time as the new version of
timescaledb.
This commit sets the noncontiguous flag upon new OSM chunk creation to
ensure backwards compatibility. However it should be reverted once the
new version of OSM is deployed.
@konskov konskov marked this pull request as ready for review September 19, 2023 15:13
@timescale timescale deleted a comment from github-actions bot Sep 19, 2023
@konskov konskov requested review from zilder, svenklemm and gayyappan and removed request for antekresic and jnidzwetzki September 19, 2023 15:14
@codecov
Copy link

codecov bot commented Sep 19, 2023

Codecov Report

Merging #6094 (1464505) into main (bb11d18) will decrease coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6094      +/-   ##
==========================================
- Coverage   74.03%   73.92%   -0.12%     
==========================================
  Files         246      246              
  Lines       49811    49607     -204     
  Branches    12512    12452      -60     
==========================================
- Hits        36878    36670     -208     
- Misses       7100     7141      +41     
+ Partials     5833     5796      -37     
Files Changed Coverage Δ
src/chunk.c 83.38% <100.00%> (+0.15%) ⬆️

... and 35 files with indirect coverage changes

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

@konskov konskov enabled auto-merge (rebase) September 19, 2023 16:11
@konskov konskov merged commit aa7ebb2 into timescale:main Sep 19, 2023
38 of 40 checks passed
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.

None yet

4 participants