Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-32033

all queries get stuck until a timeout occurs on all of them



    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4.31, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11, 11.0, 11.1, 11.2
    • 10.4
    • Locking
    • None
    • Ubuntu 20.04


      I am trying to troubleshoot an issue in a magento 2 website. It seems that at random times there comes a situation where mariadb seems to go into a deadlock situation and slowly stops serving requests. I end up with a state where every query is stuck in a waiting state. In the end some queries time out, I receive notifications about lock wait timeout exceeded and the queries eventually finish executing.

      I'm trying to deduce what's happening and how to solve this but I'm stuck and need some help understanding the cause of this issue so I ended up in dba.stackexchange.com where it was suggested that I open a bug report. You can see the full thread here


      And there's also some extra info here about the issue I'm encountering

      Here's the current config

      ~$ my_print_defaults  --mysqld

      I'm attaching the image from what I see in mytop during the occurence and the results of
      1. the full process list,
      2. the mariadb full backtrace of all running threads and
      3. the result of `show engine innodb status`

      However I wasn't able to acquire them all together because I have to be connected during the issue and the duration is not the same everytime. Sometimes things resolve within a minute, sometimes within 10 minutes.

      So they might have some different queries inside but I'm hoping we can find out the reason for this issue


        1. debug_20230904135015.zip
          350 kB
        2. debug_20230904155641.zip
          206 kB
        3. debug_20230904155641-1.zip
          206 kB
        4. debug_20230904170300.zip
          165 kB
        5. debug_20230905091543.zip
          192 kB
        6. debug_20230905142728.zip
          788 kB
        7. debug_20230907075720.zip
          201 kB
        8. debug_20230910214351.zip
          159 kB
        9. debug_20230910214351-1.zip
          159 kB
        10. dump.sql.gz
          33 kB
        11. dump.sql-1.gz
          33 kB
        12. dump2023-09-01-143646.zip
          179 kB
        13. dump2023-09-01-163052.zip
          203 kB
        14. dump20230902-071200.zip
          108 kB
        15. processlist-202309011403.txt
          65 kB
        16. queries stuck in sending state.jpg
          queries stuck in sending state.jpg
          375 kB
        17. queries stuck in sending state.txt
          1.32 MB
        18. screenshot-1.png
          234 kB
        19. screenshot-2.png
          190 kB

        Issue Links



              serg Sergei Golubchik
              ioweb.gr Gabriel Tziotzis
              1 Vote for this issue
              5 Start watching this issue



                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.