-
Notifications
You must be signed in to change notification settings - Fork 853
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]: Continuous aggregate is not refreshed automatically after insert into compressed chunks #5455
Comments
Hi @riyazkittur, Thank you for filing the issue! I tried to reproduce the problem with all the details from your issue but in my attempts, the continuous aggregates always got updated as per the defined schedule. There is a chance that the bug is triggered only with certain queries. So, can you share the definition of the hypertable and continuous aggregate you used and the related compression and refresh policies? |
|
Please make sure the chunks are already compressed and try to insert into compressed chunks using INSERT ...ON CONFLICT DO NOTHING . Data inserted in compressed chunks is not reflecting in continuous aggregates |
Hi @riyazkittur, I tried reproducing the issue with the definitions you gave but unfortunately I'm still unable to reproduce it in my setup. Is it possible the I see that you have a policy to compress chunks older than a month, which means the compressed chunks you have are atleast older than a month. On the other hand, your refresh policy only considers data that is atmost 32 days older when the job is run. The new rows, that you inserted into the compressed chunks, will be materialized in the continuous aggregate during a scheduled refresh only if they fall within the overlapping 2 day window between the compression policy and the refresh policy. Hence the above question. |
What type of bug is this?
Incorrect result
What subsystems and features are affected?
Continuous aggregate
What happened?
After the merge of pull request #5252
I am able to do insert on conflict do nothing in compressed chunks. However, continuous aggregates are not getting refreshed on the next schedule run.
TimescaleDB version affected
latest
PostgreSQL version used
14.7
What operating system did you use?
Windows 10 x64
What installation method did you use?
Source
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
No response
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: