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]: Invalidation log lowest_modified_value > greatest_modified_value #7098

Open
GeorgeTan615 opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@GeorgeTan615
Copy link

GeorgeTan615 commented Jul 4, 2024

What type of bug is this?

Data corruption, Incorrect result, Unexpected error

What subsystems and features are affected?

Continuous aggregate

What happened?

Hello TimescaleDB team and community, I'm bumping into a case where somehow a continuous aggregate's invalidation log has an entry where lowest_modified_value > greatest_modified_value.

select * from _timescaledb_catalog.continuous_aggs_materialization_invalidation_log where materialization_id=2092;
 materialization_id | lowest_modified_value | greatest_modified_value
--------------------+-----------------------+-------------------------
               2092 |  -9223372036854775808 |        1528446599999999
               2092 |      1720018800000000 |      170925119999999999
               2092 |    170929439100000000 |     9223372036854775807

lowest_modified_value = 1720018800000000 (microseconds, Wednesday, July 3, 2024 3:00:00 PM)
greatest_modified_value = 170925119999999999 (nanoseconds, Monday, June 2, 1975 7:12:00 AM)

We don't tamper/directly modify invalidation log tables either. Any idea what could cause this?

TimescaleDB version affected

2.15.2

PostgreSQL version used

15.7

What operating system did you use?

(Debian 15.7-0+deb12u1) on x86_64-pc-linux-gnu

What installation method did you use?

Docker

What platform did you run on?

Other

Relevant log output and stack trace

No response

How can we reproduce the bug?

Not sure how this can reproduced as we have no idea how this is possible.
@fabriziomello
Copy link
Contributor

@GeorgeTan615 I've tried to reproduce it without success. Can u provide more details and/or a link to download a dump of your corrupted database?

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