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

slow log cannot be rotated

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 10.6.15
    • N/A
    • Admin statements
    • None
    • Ubuntu 20.04

    Description

      I've had to enable the slow log on a production server with lots of traffic to identify some issues however it was growing really fast in size.

      I decided to add logrotate to compress and rotate the slow log when it exceeded 1G but to my surprise even though it was rotated and the size appeared smaller, the disk space wasn't actually freed until maria db was restarted

      It appears that maria db is holding a lock to the file indefinitely for writing without ever releasing the lock thus the operating system can never release the space that was freed from log rotation

      There should either be a way to rotate it via settings or allow the operating system to free the space

      Attachments

        Activity

          People

            serg Sergei Golubchik
            ioweb.gr Gabriel Tziotzis
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.