Uploaded image for project: 'Debezium'
  1. Debezium
  2. DBZ-7570

Log exception details early in case MySQL keep-alive causes deadlock on shutdown

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.Alpha2
    • 2.5.2.Final, 2.6.0.Alpha2
    • mysql-connector
    • None
    • False
    • None
    • False

      The MySqlStreamingChangeEventSource will call the client.disconnect() during the source's finally block and randomly blocks when there is a deadlock between the main thread and the keep-alive thread. This has been reported upstream in https://github.com/osheroff/mysql-binlog-connector-java/issues/133.

      The issue is we don't know what triggers the shutdown to safely reproduce the scenario and so I recommend we add some extra logging at the INFO level to capture the exception stack trace early as a way to determine why this happens so in the case of a deadlock, the logs can at least be helpful.

              ccranfor@redhat.com Chris Cranford
              ccranfor@redhat.com Chris Cranford
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: