-
Notifications
You must be signed in to change notification settings - Fork 55
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
The sink-connector lightweight stops replicating #380
Comments
Steps to reproduce: |
I suspect that there is a deadlock and that the connection waits forever to close. This can be confirmed by a java thread dump. The solution found for such a situation is to restart debezium when no changes are detected for a while : |
Store the timestamp of the last record and if its more than 5/10 mins then restart Debezium Engine. |
root cause traced to this issue osheroff/mysql-binlog-connector-java#133 (reporter) |
looks like a OpenJDK 11 bug, @subkanthi let us upgrade ! |
Reproduced with OpenJDK 17 see osheroff/mysql-binlog-connector-java#133 |
The problem continues after the fix ... |
From analyzing the thread dump provided, the cause seems to be because of high number of GC threads
https://blog.fastthread.io/2015/09/02/thread-dump-analysis-pattern-several-scavengers/ As shown in the image there are only 15 threads that are created by sink connector |
There are also 19 threads that are blocked in
|
Workaround Solution: Also the debezium event loop is restarted when the timestamp of the record stored in |
The issue was manually verified by the Altinity QA team and marked as Build used for testing: We've verified that setting Values specified in |
@subkanthi a workaround is in place but this still impacts the sink-connector latency (up to |
Analyzing the latest thread dump, all the 8 threads in
|
Similar issue in debezium zulipchat
|
Debezium issue - https://issues.redhat.com/browse/DBZ-7570 |
said: It's on my radar for 2.7.0.Alpha1 Chris Cranford (Naros): said: Thanks Chris, is there any workarounds for now, like mysql version change maybe as discussed in the other thread? Unfortunately nothing really at this time. |
Even though debezium team addressed the issue in |
The issue is still present in https://github.com/Altinity/clickhouse-sink-connector/releases/tag/2.5.0
|
see https://issues.redhat.com/browse/DBZ-7563
|
does not solve the issue |
this setting works for us :
|
#380 - Added configuration settings to prevent freeze of debezium loop.
last log before it stops :
Restarting the container fixes the issue.
The text was updated successfully, but these errors were encountered: