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

[Bug]: 'ERROR: tuple already updated by self' after inserting data when chunk was dropped #6904

Open
banitt opened this issue May 9, 2024 · 2 comments
Labels

Comments

@banitt
Copy link

banitt commented May 9, 2024

What type of bug is this?

Unexpected error

What subsystems and features are affected?

Data ingestion

What happened?

Chunks were dropped from a hypertable by retention policy. When I insert a new row that would be in those chunks I am getting ERROR: tuple already updated by self.

TimescaleDB version affected

2.14.2

PostgreSQL version used

16.2

What operating system did you use?

22.04.4

What installation method did you use?

Deb/Apt

What platform did you run on?

On prem/Self-hosted

Relevant log output and stack trace

No response

How can we reproduce the bug?

1. <hypertable with data>
2. `SELECT DROP_CHUNKS('data', newer_than => '2024-01-01 00:00:00.000+0200')`
3.  INSERT INTO data (time, value) VALUES ('2024-01-02 00:00:00.000+0200', 100)
@banitt banitt added the bug label May 9, 2024
@akuzm
Copy link
Member

akuzm commented May 10, 2024

Do you have any old-format continuous aggregates? You can check with select * from _timescaledb_catalog.continuous_agg where not finalized;. I found one similar report: #5905

@banitt
Copy link
Author

banitt commented May 10, 2024

Do you have any old-format continuous aggregates? You can check with select * from _timescaledb_catalog.continuous_agg where not finalized;. I found one similar report: #5905

This query gives me no results. All the hypertables, ontinuous aggregates etc. were created about 1 month ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants