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 segfault on non-open primary dimension when compressing #6978

Merged
merged 1 commit into from
May 31, 2024

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented May 31, 2024

With the new hypertable API hypertables can be created with primary space partition. In dev-builds this was prevented with Asserts. This patch removes the Asserts and adds a proper check.

Fixes #6977

@svenklemm svenklemm self-assigned this May 31, 2024
Copy link

codecov bot commented May 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.72%. Comparing base (59f50f2) to head (85a9a3e).
Report is 190 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6978      +/-   ##
==========================================
+ Coverage   80.06%   81.72%   +1.66%     
==========================================
  Files         190      199       +9     
  Lines       37181    36936     -245     
  Branches     9450     9651     +201     
==========================================
+ Hits        29770    30187     +417     
+ Misses       2997     2870     -127     
+ Partials     4414     3879     -535     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tsl/test/sql/compression_merge.sql Outdated Show resolved Hide resolved
@svenklemm svenklemm force-pushed the closed_primary branch 2 times, most recently from 4eabe68 to 85a9a3e Compare May 31, 2024 15:45
With the new hypertable API hypertables can be created with
primary space partition. In dev-builds this was prevented with
Asserts. This patch removes the Asserts and adds a proper check.
@svenklemm svenklemm enabled auto-merge (rebase) May 31, 2024 15:45
@svenklemm svenklemm merged commit 4dcbc26 into timescale:main May 31, 2024
40 checks passed
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 6, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
@fabriziomello fabriziomello mentioned this pull request Jun 6, 2024
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 6, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
pallavisontakke added a commit to pallavisontakke/timescaledb that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.1 release. Best practice is to upgrade at the next
available opportunity.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and the update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on the primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting the issue with partially compressed chunks and ordering on joined columns.
@pallavisontakke pallavisontakke mentioned this pull request Jun 7, 2024
pallavisontakke added a commit that referenced this pull request Jun 7, 2024
This release contains bug fixes since the
2.15.1 release. Best practice is to upgrade at the next available
opportunity.

**Bugfixes**
* #6975: Fix sort pushdown for partially compressed chunks.
* #6976: Fix removal of metadata function and the update script.
* #6978: Fix segfault in `compress_chunk` with primary space partition.
* #6993: Disallow hash partitioning on the primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting the issue with partially compressed chunks and
ordering on joined columns.
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
fabriziomello added a commit that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [#6797](#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* #6975: Fix sort pushdown for partially compressed chunks.
* #6976: Fix removal of metadata function and update script.
* #6978: Fix segfault in compress_chunk with primary space partition.
* #6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
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.

[Bug]: Segfault when compressing a chunk belonging to a hypertable with closed dimensions
4 participants