select slot_name, pg_size_pretty(pg_xlog_location_diff(pg_current_xlog_location(),restart_lsn)) as replicationSlotLag, active from pg_replication_slots;
Hi,No. We use a database with one table, and this table is definitely whitelisted, and we see the records there reaching our Kinesis stream and from there to S3.
The Postgres connector seems to never update the confirmed_flush_lsn value.I actually cannot find the part in the source code responsible for it. If you can point me in the right direction I might be able to debug and give more insights.
--
You received this message because you are subscribed to a topic in the Google Groups "debezium" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/debezium/AGcqiByF9UM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to debezium+u...@googlegroups.com.
To post to this group, send email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/b9f7571c-93f9-4796-8814-acc9994cdb6a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, I will try this.Two questions:
- Were you guys able to reproduce?
- Is it possible that PostgresConnectorTask.commit() is not implemented correctly and doesn't actually update the confirmed_flush_lsn value?
if (!offsetWriter.beginFlush()) return;
Timed out waiting to flush EmbeddedConnector{id=svc-debezium-kinesis} offsets to storage
Hi,
It's actually a custom implementation of ours.The question is:
- How to increase the timeout of the operation?
By specifying "offset.flush.timeout.ms" as you already found out.
- What does it even have to do with replication slots growing? I was under the impressions that updating last_processed_lsn value in Postgres server was timing out. Not updating our own track of the offsets.
Just to make sure we're on the same page:The Postgres replication slots growing indefinitely happens because the connector fails to update the transaction log position on the Postgres database, correct?
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/10e73aa6-2bc6-40c5-8bf9-434fee7107f6%40googlegroups.com.
To unsubscribe from this group and all its topics, send an email to debezium+unsubscribe@googlegroups.com.
select confirmed_flush_lsn from pg_replication_slots;
confirmed_flush_lsn
---------------------
39/8E029F58
You received this message because you are subscribed to the Google Groups "debezium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to debezium+u...@googlegroups.com.
To post to this group, send email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/48bd4f04-fa2a-475e-905d-1a624248853a%40googlegroups.com.
…
{"thread":"pool-4-thread-1","level":"DEBUG","loggerName":"io.debezium.connector.postgresql.RecordsStreamProducer","message":"Flushing LSN to server: LSN{3C/A300035F}","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","instant":{"epochSecond":1538732026,"nanoOfSecond":265000000},"threadId":16,"threadPriority":5}
{"thread":"pool-4-thread-1","level":"DEBUG","loggerName":"io.debezium.connector.postgresql.RecordsStreamProducer","message":"Flushing LSN to server: LSN{3C/A3002C4F}","endOfBatch":false,"loggerFqcn":"org.apache.logging.slf4j.Log4jLogger","instant":{"epochSecond":1538732053,"nanoOfSecond":331000000},"threadId":16,"threadPriority":5}
…
slot_name | plugin | slot_type | datoid | database | active | active_pid | xmin | catalog_xmin | restart_lsn | confirmed_flush_lsn
------------------------+----------+-----------+--------+------------------+--------+------------+------+--------------+-------------+---------------------
debeziumstagingsandbox | wal2json | logical | 26998 | sandbox_location | t | 603 | | 261157 | 3C/A3002C00 | 3C/A3002C4F
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/dea11f22-0754-4e3a-9460-ef7c12a4b530%40googlegroups.com.
I will try it
To unsubscribe from this group and all its topics, send an email to debe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/debezium/ca0624e6-4487-4b59-ba47-71cd514c101b%40googlegroups.com.