Skip to content

[Enhancement]: Better logging of errors/warnings #8052

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

Open
MichalBartos opened this issue May 5, 2025 · 0 comments
Open

[Enhancement]: Better logging of errors/warnings #8052

MichalBartos opened this issue May 5, 2025 · 0 comments
Labels
Background Worker The background worker subsystem, including the scheduler enhancement An enhancement to an existing feature for functionality ui/ux

Comments

@MichalBartos
Copy link

What type of enhancement is this?

User experience

What subsystems and features will be improved?

Other

What does the enhancement do?

Hello,
would be possible to review a text of the error/warning messages written into the logs by adding database name? When we have multiple databases with TimescaleDB plugin it is bit complicated to find the problem. We have to check all DBs until we find a match between the job, hypertable and chunk.

If possible it should be applied on all errors or warnings.

Error/warning example:
2025-05-04 06:54:59.727 CEST [1286510-1] @ 6816f31b.13a16e 54000WARNING: compressing chunk “_timescaledb_internal._hyper_65_2794_chunk” failed when compression policy is executed
2025-05-04 06:54:59.727 CEST [1286510-2] @ 6816f31b.13a16e 54000DETAIL: Message: (index row size 2808 exceeds btree version 4 maximum 2704 for index “compress_hyper_66_2870_chunk_dbname__ts_meta_min_1__ts_meta_idx”), Detail: (Index row references tuple (4,40) in relation “compress_hyper_66_2870_chunk”.).
2025-05-04 06:54:59.727 CEST [1286510-3] @ 6816f31b.13a16e 54000CONTEXT: PL/pgSQL function _timescaledb_functions.policy_compression_execute(integer,integer,anyelement,integer,boolean,boolean,boolean,boolean) line 72 at RAISE
SQL statement “CALL _timescaledb_functions.policy_compression_execute(
job_id, htid, lag_value::INTERVAL,
maxchunks, verbose_log, recompress_enabled, use_creation_time, hypercore_use_access_method
)”
PL/pgSQL function _timescaledb_functions.policy_compression(integer,jsonb) line 63 at CALL
2025-05-04 06:54:59.734 CEST [1286510-4] @ 6816f31b.13a16e 00000LOG: job 1032 threw an error
2025-05-04 06:54:59.734 CEST [1286510-5] @ 6816f31b.13a16e P0001ERROR: compression policy failure
2025-05-04 06:54:59.734 CEST [1286510-6] @ 6816f31b.13a16e P0001DETAIL: Failed to compress ‘1’ chunks. Successfully compressed ‘1’ chunks.
2025-05-04 06:54:59.734 CEST [1286510-7] @ 6816f31b.13a16e P0001CONTEXT: PL/pgSQL function _timescaledb_functions.policy_compression_execute(integer,integer,anyelement,integer,boolean,boolean,boolean,boolean) line 120 at RAISE
SQL statement “CALL _timescaledb_functions.policy_compression_execute(
job_id, htid, lag_value::INTERVAL,
maxchunks, verbose_log, recompress_enabled, use_creation_time, hypercore_use_access_method
)”
PL/pgSQL function _timescaledb_functions.policy_compression(integer,jsonb) line 63 at CALL

Implementation challenges

No response

@MichalBartos MichalBartos added the enhancement An enhancement to an existing feature for functionality label May 5, 2025
@mkindahl mkindahl added Background Worker The background worker subsystem, including the scheduler ui/ux labels May 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Background Worker The background worker subsystem, including the scheduler enhancement An enhancement to an existing feature for functionality ui/ux
Projects
None yet
Development

No branches or pull requests

2 participants