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

After running ALTER EVENT event doesn't run event for single run

    XMLWordPrintable

Details

    • Bug
    • Status: Needs Feedback (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.6.24
    • None
    • Events
    • AWS RDS

    Description

      This fault was first observed on our AWS RDS instance running 10.5. Following an update to 10.6 the problem appears to still be present, so I thought I'd create an account here and raise it as a bug as it may warrant further investigation and/or fixing. It may equally not be a bug, but the behaviour doesn't make sense.

      First, Create an event to run once at some point in the future.

      CREATE DEFINER=`user`@`%` EVENT `adhoc_query_runner` ON SCHEDULE AT '2026-01-10 00:30:00' ON COMPLETION PRESERVE ENABLE ... etc

      This event then runs ok and is preserved.

      When the event is altered for running again at a later date/time it then doesn't run at the allocated and altered time. No errors are logged.

      ALTER DEFINER=`user`@`%` EVENT `adhoc_query_runner` ON SCHEDULE AT '2026-01-20 00:30:00' ON COMPLETION PRESERVE ENABLE ... etc

      The only way to run this event again is to DROP it and CREATE it again. The ALTER EVENT works fine in our environment with other events that repeat on a schedule. It is only this style of EVENT where there is no schedule and it is only to be ran once at an allocated time.

      Attachments

        Activity

          People

            Unassigned Unassigned
            MH-IT Andrew Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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