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

MySQL connector uses to perform an initial snapshot with a global read lock

XMLWordPrintable

    • False
    • None
    • False

      In order to make your issue reports as actionable as possible, please provide the following information, depending on the issue type.

      Bug report

      For bug reports, provide this information, please:

      What Debezium connector do you use and what version?

      2.5.1 Final

      What is the connector configuration?

      Basic

      What is the captured database version and mode of depoyment?

      mysql  Ver 8.0.36-0ubuntu0.22.04.1 for Linux on x86_64 ((Ubuntu))
       

       

      What behaviour do you expect?

      In the docs it says In some database environments administrators do not permit global read locks. If the Debezium MySQL connector detects that global read locks are not permitted, the connector uses table-level locks when it performs snapshots. For the connector to perform a snapshot that uses table-level locks, the database account that the Debezium connector uses to connect to MySQL must have LOCK TABLES privileges.

      MySQL connector is using read lock for the table snapshot But we are having some ongoing apps or apis  that will always make changes always to db  . Why are making a table lock for snapshot ?
      Does locking tables or database make entire database or table to be in read only mode ? If  it does it will be huge loss for us and all right ?
      how can we perform snapshot without table lock 

      What behaviour do you see?

       

      Do you see the same behaviour using the latest relesead Debezium version?

      (Ideally, also verify with latest Alpha/Beta/CR version)

      <Your answer>

      Do you have the connector logs, ideally from start till finish?

      (You might be asked later to provide DEBUG/TRACE level log)

      <Your answer>

      How to reproduce the issue using our tutorial deployment?

      <Your answer>

      Feature request or enhancement

      For feature requests or enhancements, provide this information, please:

      Which use case/requirement will be addressed by the proposed feature?

      <Your answer>

      Implementation ideas (optional)

      <Your answer>

            Unassigned Unassigned
            mogili842 mogileeswar g
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: