Details

    Description

      Aria can under some circumstances hang in log_handler.cc::translog_buffer_flush

      The hang is caused because of buffer->copy_to_buffer_in_progress getting out of sync.

      I have attached a minimal stacktrace from 10.2 that shows one hang.

      Attachments

        Activity

          Might be related to MDEV-4312 (see the last stack trace in the comment, there is also a hang in translog_buffer_flush).

          elenst Elena Stepanova added a comment - Might be related to MDEV-4312 (see the last stack trace in the comment, there is also a hang in translog_buffer_flush).
          sanja Oleksandr Byelkin added a comment - - edited

          Passed for testing under load.
          bb-5.5-MDEV-15113

          sanja Oleksandr Byelkin added a comment - - edited Passed for testing under load. bb-5.5- MDEV-15113

          bb-5.5-MDEV-15113 5676edf451cc9f653c2 doesn't build.

          Building C object storage/maria/CMakeFiles/aria.dir/ma_pagecache.c.o
          /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c: In function ‘used_buffs_urgent_unlock’:
          /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c:4976:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
             for (uint i= buffs->unlck_ptr; i < buffs->wrt_ptr; i++)
             ^
          /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c:4976:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
          [ 81%] Building C object storage/maria/CMakeFiles/aria.dir/ma_pagecaches.c.o
          storage/maria/CMakeFiles/aria.dir/build.make:1411: recipe for target 'storage/maria/CMakeFiles/aria.dir/ma_loghandler.c.o' failed
          make[2]: *** [storage/maria/CMakeFiles/aria.dir/ma_loghandler.c.o] Error 1
          make[2]: *** Waiting for unfinished jobs....
          CMakeFiles/Makefile2:3570: recipe for target 'storage/maria/CMakeFiles/aria.dir/all' failed
          make[1]: *** [storage/maria/CMakeFiles/aria.dir/all] Error 2
          

          elenst Elena Stepanova added a comment - bb-5.5- MDEV-15113 5676edf451cc9f653c2 doesn't build. Building C object storage/maria/CMakeFiles/aria.dir/ma_pagecache.c.o /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c: In function ‘used_buffs_urgent_unlock’: /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c:4976:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (uint i= buffs->unlck_ptr; i < buffs->wrt_ptr; i++) ^ /data/src/bb-5.5-MDEV-15113/storage/maria/ma_loghandler.c:4976:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code [ 81%] Building C object storage/maria/CMakeFiles/aria.dir/ma_pagecaches.c.o storage/maria/CMakeFiles/aria.dir/build.make:1411: recipe for target 'storage/maria/CMakeFiles/aria.dir/ma_loghandler.c.o' failed make[2]: *** [storage/maria/CMakeFiles/aria.dir/ma_loghandler.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:3570: recipe for target 'storage/maria/CMakeFiles/aria.dir/all' failed make[1]: *** [storage/maria/CMakeFiles/aria.dir/all] Error 2

          I didn't get anything relevant to the change while running tests on bb-5.5-MDEV-15113 7435cebf49f, please go ahead in push

          MDEV-4312 has to stay open, at least the crash is still reproducible.

          elenst Elena Stepanova added a comment - I didn't get anything relevant to the change while running tests on bb-5.5- MDEV-15113 7435cebf49f, please go ahead in push MDEV-4312 has to stay open, at least the crash is still reproducible.

          On the 2nd thought, I'm not quite happy with my test coverage yet, I need to run more tests.

          elenst Elena Stepanova added a comment - On the 2nd thought, I'm not quite happy with my test coverage yet, I need to run more tests.

          People

            sanja Oleksandr Byelkin
            monty Michael Widenius
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

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